Surendrakumar Paulraj
/
itead_lcd1
ITEAD 2.4E LCD Interface 8 Bit Parallel Mode
main.cpp
- Committer:
- techneo
- Date:
- 2013-02-20
- Revision:
- 0:217105958c2d
File content as of revision 0:217105958c2d:
#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 } }