Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
00001 #include "mbed.h" 00002 #include "lcd_driver.h" 00003 00004 DigitalOut myled(LED1); 00005 00006 00007 int main() { 00008 00009 Serial pc(USBTX, USBRX); // tx, rx 00010 00011 Lcd_Init(); 00012 pc.printf("Hello mbed\n"); 00013 LCD_clear(); 00014 pc.printf("clear \n"); 00015 Pant(0xf800); 00016 Pant(0x07e0); 00017 Pant(0x001f); 00018 Pant(0xffff); 00019 Pant(0x0000); 00020 00021 while(1) { 00022 Pant(0xf800); 00023 Pant(0x07e0); 00024 Pant(0x001f); 00025 Pant(0xffff); 00026 Pant(0x0000); 00027 #if 0 00028 myled = 1; 00029 wait(0.5); 00030 myled = 0; 00031 wait(0.5); 00032 #endif 00033 } 00034 } 00035 00036 00037
Generated on Mon Jul 18 2022 08:44:23 by
1.7.2