Alexandre Boutry / Mbed 2 deprecated lcd_nucleoBranly

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 DigitalOut myled(LED1);
00004 TextLCD lcd(D8,D9,D4,D5,D6,D7);
00005 int main()
00006 {
00007     lcd.printf("NUCLEO F103RB");
00008     float i=0.0;
00009     while(1) {
00010         lcd.locate(0,1);
00011         lcd.printf("%f",i);
00012         i=i+0.5;
00013     wait_ms(200) ;
00014     }
00015 }