nikos chalikias
/
n-bed_LCD_ADC_RTC
testing n-bed
Revision 2:50bd6c03049b, committed 2015-04-27
- Comitter:
- chalikias
- Date:
- Mon Apr 27 19:50:41 2015 +0000
- Parent:
- 1:998fdef84813
- Commit message:
- testing n-Bed LCD, RTC and ADC
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 998fdef84813 -r 50bd6c03049b main.cpp --- 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);