Experimento LCD

Dependencies:   TextLCD mbed

Committer:
szapataa
Date:
Tue Oct 06 03:01:31 2015 +0000
Revision:
0:52cafd82a3bf
Experimento LCD;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
szapataa 0:52cafd82a3bf 1 // Hello World! for the TextLCD
szapataa 0:52cafd82a3bf 2
szapataa 0:52cafd82a3bf 3 #include "mbed.h"
szapataa 0:52cafd82a3bf 4 #include "TextLCD.h"
szapataa 0:52cafd82a3bf 5
szapataa 0:52cafd82a3bf 6 TextLCD lcd(PTB10, PTB11, PTE2, PTE3, PTE4, PTE5); // rs, e, d4-d7
szapataa 0:52cafd82a3bf 7
szapataa 0:52cafd82a3bf 8 int main()
szapataa 0:52cafd82a3bf 9
szapataa 0:52cafd82a3bf 10 {
szapataa 0:52cafd82a3bf 11 lcd.printf("Hello World! \n Welcome");
szapataa 0:52cafd82a3bf 12 wait(5);
szapataa 0:52cafd82a3bf 13 writeCommand(0x01);
szapataa 0:52cafd82a3bf 14 lcd.printf("Tiamo");
szapataa 0:52cafd82a3bf 15 }