Team Design Project 3 / Mbed 2 deprecated LCDdisplay

Dependencies:   TextLCD mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "TextLCD.h"
00003  
00004 TextLCD lcd(p15, p16, p17, p18, p19, p20, TextLCD::LCD16x2B); 
00005  
00006 int main() {
00007  
00008     for ( float speed = 1.25; speed<=300; speed += 2.574){
00009   lcd.cls();
00010     wait(0.001);
00011     lcd.printf(" %6.2f", speed);
00012    lcd.locate(0,1);
00013    lcd.printf("KM/H");
00014    wait(0.5);
00015    }
00016  
00017     }