
code for the display
Diff: main.cpp
- Revision:
- 0:32aa206e59e8
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Mar 22 19:56:37 2016 +0000 @@ -0,0 +1,17 @@ +#include "mbed.h" +#include "TextLCD.h" + +TextLCD lcd(p15, p16, p17, p18, p19, p20, TextLCD::LCD16x2B); + +int main() { + + for ( float speed = 1.25; speed<=300; speed += 2.574){ + lcd.cls(); + wait(0.001); + lcd.printf(" %6.2f", speed); + lcd.locate(0,1); + lcd.printf("KM/H"); + wait(0.5); + } + + } \ No newline at end of file