Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SB1602E SDFileSystem mbed
Diff: main.cpp
- Revision:
- 1:758a4ce77b97
- Parent:
- 0:a84ca5aea16f
- Child:
- 2:78ba5d3f0ac9
--- a/main.cpp Mon May 11 10:11:11 2015 +0000 +++ b/main.cpp Fri May 15 05:40:12 2015 +0000 @@ -1,15 +1,21 @@ #include "mbed.h" +#include "SB1602E.h" AnalogIn sensor(dp13); Serial pc(USBTX, USBRX); +SB1602E lcd( dp5, dp27 ); int main() { + lcd.contrast(0x30); while(1) { float Temperature; Temperature = (sensor * 3.3 - 0.6) / 0.01; pc.printf("Temperature = %f\r\n",Temperature); + + lcd.clear(); + lcd.printf(0,0,"%.2f",Temperature); wait(1.0); }