test

Dependencies:   mbed-STM32F103C8T6 SHT21_ncleee

main.cpp

Committer:
techneo
Date:
2013-02-20
Revision:
0:217105958c2d
Child:
1:0fe432e5dfc4

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 
    }
}