nikos chalikias
/
n-bed_LCD_ADC_RTC
testing n-bed
Diff: main.cpp
- Revision:
- 2:50bd6c03049b
- Parent:
- 1:998fdef84813
--- a/main.cpp Thu Jan 22 15:09:49 2015 +0000 +++ b/main.cpp Mon Apr 27 19:50:41 2015 +0000 @@ -27,6 +27,11 @@ while (1) { led1 = 1; ain=input.read(); + + time_t seconds = time(NULL); + lcd.locate(0,1); lcd2.locate(0,1); + lcd.printf("%s", ctime(&seconds)); lcd2.printf("%s", ctime(&seconds)); + lcd.locate(0,2); lcd2.locate(0,2); lcd.printf("n-bed A3=%1.1f V", ( float(3.3)*ain) ) ; lcd2.printf("n-bed A3=%1.1f V", ( float(3.3)*ain) ) ; wait(0.001);