Hauptprogramm
Dependencies: ILI9340_Driver_Lib PM2_Libary Lib_DFPlayerMini
Diff: main.cpp
- Revision:
- 14:153f377f4030
- Parent:
- 13:096e5dc3ac23
- Child:
- 15:babdd038715a
--- a/main.cpp Sat Apr 17 11:25:37 2021 +0000 +++ b/main.cpp Sat Apr 17 13:20:05 2021 +0000 @@ -24,6 +24,9 @@ int main() { set_time(1618332129); //Zeit setzen + int i = 0; + + user_button.fall(&button_fall); user_button.rise(&button_rise); loop_timer.start(); @@ -40,7 +43,19 @@ //Zeitfunktion uhrzeit(time(NULL)); - ThisThread::sleep_for(5s); //Wartet 5s. + + + //Zeitfunktionen + if (i != 360){ + ThisThread::sleep_for(5s); //Wartet 5s.. + printf("%d\n", i); + } + else{ + i=0; + } + + + i += 5; led = !led;