Ejemplo RTC
Dependencies: Debounced FPointer RTC-DS1307 TextLCD keypad mbed
Fork of IngresoHORA by
Diff: main.cpp
- Revision:
- 1:8f03434fc55b
- Parent:
- 0:7eff3c322f61
- Child:
- 2:21ba0afb6205
--- a/main.cpp Wed Apr 30 23:44:19 2014 +0000 +++ b/main.cpp Wed Apr 30 23:45:57 2014 +0000 @@ -24,8 +24,6 @@ float ppp=0.001; float Dd=0.1; int p=0,c=0,d=0,e=0,flag=0,ff=0,hh=0; -char buffer[128]; -int readptr=0; int key; char Keytable[] = { '1', '2', '3', 'A', @@ -38,7 +36,7 @@ { key=Key; - if(Keytable[key]=='A')// + if(Keytable[key]=='A')//Lectura del { Write=0; Read=1; @@ -354,11 +352,11 @@ rtc.setTime(tm, false, false); wait(0.3); Start=0; - myled=0; + } if(Encendido==1) { - myled1=0; + rtc.startClock(); wait(0.2); flag2=1;