Alexandre Boutry / Mbed 2 deprecated lcd_nucleoBranly

Dependencies:   TextLCD mbed

Committer:
aboutry
Date:
Wed Oct 11 13:43:43 2017 +0000
Revision:
0:9e0faf75f451
Louai

Who changed what in which revision?

UserRevisionLine numberNew contents of line
aboutry 0:9e0faf75f451 1 #include "mbed.h"
aboutry 0:9e0faf75f451 2 #include "TextLCD.h"
aboutry 0:9e0faf75f451 3 DigitalOut myled(LED1);
aboutry 0:9e0faf75f451 4 TextLCD lcd(D8,D9,D4,D5,D6,D7);
aboutry 0:9e0faf75f451 5 int main()
aboutry 0:9e0faf75f451 6 {
aboutry 0:9e0faf75f451 7 lcd.printf("NUCLEO F103RB");
aboutry 0:9e0faf75f451 8 float i=0.0;
aboutry 0:9e0faf75f451 9 while(1) {
aboutry 0:9e0faf75f451 10 lcd.locate(0,1);
aboutry 0:9e0faf75f451 11 lcd.printf("%f",i);
aboutry 0:9e0faf75f451 12 i=i+0.5;
aboutry 0:9e0faf75f451 13 wait_ms(200) ;
aboutry 0:9e0faf75f451 14 }
aboutry 0:9e0faf75f451 15 }