Hauptprogramm

Dependencies:   ILI9340_Driver_Lib PM2_Libary Lib_DFPlayerMini

Committer:
ackerden
Date:
Wed May 05 15:27:28 2021 +0000
Revision:
30:39a53ed11b7d
Parent:
14:153f377f4030
;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ackerden 13:096e5dc3ac23 1 #include "mbed.h"
ackerden 13:096e5dc3ac23 2 #include "mbed_rtc_time.h"
ackerden 13:096e5dc3ac23 3
ackerden 13:096e5dc3ac23 4 #include "realtimer.h"
ackerden 13:096e5dc3ac23 5
ackerden 13:096e5dc3ac23 6
ackerden 13:096e5dc3ac23 7 //Zeitfunktion
ackerden 14:153f377f4030 8 void uhrzeit(time_t){
ackerden 13:096e5dc3ac23 9 time_t seconds = time(NULL);
ackerden 13:096e5dc3ac23 10 printf("%u\n", time(NULL));
ackerden 13:096e5dc3ac23 11 printf("Time as a basic string = %s", ctime(&seconds));
ackerden 13:096e5dc3ac23 12 char buffer[32];
ackerden 13:096e5dc3ac23 13 strftime(buffer, 32, "%I:%M %p\n", localtime(&seconds));
ackerden 13:096e5dc3ac23 14 printf("Time as a custom formatted string = %s", buffer);
ackerden 13:096e5dc3ac23 15 }