Surendrakumar Paulraj
/
itead_lcd1
ITEAD 2.4E LCD Interface 8 Bit Parallel Mode
Diff: main.cpp
- Revision:
- 0:217105958c2d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Feb 20 15:13:20 2013 +0000 @@ -0,0 +1,37 @@ +#include "mbed.h" +#include "lcd_driver.h" + +DigitalOut myled(LED1); + + +int main() { + + Serial pc(USBTX, USBRX); // tx, rx + + Lcd_Init(); + pc.printf("Hello mbed\n"); + LCD_clear(); + pc.printf("clear \n"); + Pant(0xf800); + Pant(0x07e0); + Pant(0x001f); + Pant(0xffff); + Pant(0x0000); + + while(1) { + Pant(0xf800); + Pant(0x07e0); + Pant(0x001f); + Pant(0xffff); + Pant(0x0000); +#if 0 + myled = 1; + wait(0.5); + myled = 0; + wait(0.5); +#endif + } +} + + +