1
0
Fork 0
mirror of https://github.com/kou029w/k2ping.git synced 2025-01-19 00:18:00 +00:00
k2ping/src/k2ping.ino

25 lines
466 B
Arduino
Raw Normal View History

2017-04-14 21:57:19 +09:00
#include <ESP8266WiFi.h>
2017-04-15 11:37:24 +09:00
// Digital pins for WeMos D1
static const uint8_t D[] = {3, 1, 16, 5, 4, 14, 12, 13, 0, 2, 15};
2017-04-14 21:57:19 +09:00
void setup() {
2017-04-15 11:56:44 +09:00
Serial.begin(9600);
Serial.println();
WiFi.begin("network-name", "pass-to-network");
Serial.print("Connecting");
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println();
Serial.print("Connected, IP address: ");
Serial.println(WiFi.localIP());
2017-04-14 21:57:19 +09:00
}
void loop() {
;
2017-04-15 11:56:44 +09:00
}