print time every 10s to console
This commit is contained in:
parent
30d8829426
commit
29425d0cb1
2 changed files with 8 additions and 3 deletions
|
|
@ -13,4 +13,5 @@ platform = espressif8266
|
|||
board = d1_mini_lite
|
||||
framework = arduino
|
||||
lib_deps =
|
||||
https://github.com/tzapu/WiFiManager
|
||||
https://github.com/tzapu/WiFiManager
|
||||
https://github.com/ropg/ezTime
|
||||
|
|
@ -1,16 +1,20 @@
|
|||
#include <Arduino.h>
|
||||
#include <ESP8266WiFi.h>
|
||||
|
||||
#include <DNSServer.h>
|
||||
#include <ESP8266WebServer.h>
|
||||
#include <WiFiManager.h>
|
||||
#include <ezTime.h>
|
||||
|
||||
WiFiManager wifiManager;
|
||||
|
||||
void setup() {
|
||||
Serial.begin(9600);
|
||||
wifiManager.autoConnect("Tetris-clock");
|
||||
waitForSync();
|
||||
}
|
||||
|
||||
void loop() {
|
||||
// put your main code here, to run repeatedly:
|
||||
Serial.println(now());
|
||||
Serial.flush();
|
||||
delay(10000);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue