for hank

Dependencies:   mbed-STM32F103C8T6_new

Committer:
techneo
Date:
Wed Feb 20 15:13:20 2013 +0000
Revision:
0:217105958c2d
Child:
1:0fe432e5dfc4
working module

Who changed what in which revision?

UserRevisionLine numberNew contents of line
techneo 0:217105958c2d 1 #include "mbed.h"
techneo 0:217105958c2d 2 #include "lcd_driver.h"
techneo 0:217105958c2d 3
techneo 0:217105958c2d 4 DigitalOut myled(LED1);
techneo 0:217105958c2d 5
techneo 0:217105958c2d 6
techneo 0:217105958c2d 7 int main() {
techneo 0:217105958c2d 8
techneo 0:217105958c2d 9 Serial pc(USBTX, USBRX); // tx, rx
techneo 0:217105958c2d 10
techneo 0:217105958c2d 11 Lcd_Init();
techneo 0:217105958c2d 12 pc.printf("Hello mbed\n");
techneo 0:217105958c2d 13 LCD_clear();
techneo 0:217105958c2d 14 pc.printf("clear \n");
techneo 0:217105958c2d 15 Pant(0xf800);
techneo 0:217105958c2d 16 Pant(0x07e0);
techneo 0:217105958c2d 17 Pant(0x001f);
techneo 0:217105958c2d 18 Pant(0xffff);
techneo 0:217105958c2d 19 Pant(0x0000);
techneo 0:217105958c2d 20
techneo 0:217105958c2d 21 while(1) {
techneo 0:217105958c2d 22 Pant(0xf800);
techneo 0:217105958c2d 23 Pant(0x07e0);
techneo 0:217105958c2d 24 Pant(0x001f);
techneo 0:217105958c2d 25 Pant(0xffff);
techneo 0:217105958c2d 26 Pant(0x0000);
techneo 0:217105958c2d 27 #if 0
techneo 0:217105958c2d 28 myled = 1;
techneo 0:217105958c2d 29 wait(0.5);
techneo 0:217105958c2d 30 myled = 0;
techneo 0:217105958c2d 31 wait(0.5);
techneo 0:217105958c2d 32 #endif
techneo 0:217105958c2d 33 }
techneo 0:217105958c2d 34 }
techneo 0:217105958c2d 35
techneo 0:217105958c2d 36
techneo 0:217105958c2d 37