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 "Displays.h" 00003 DigitalOut myled(LED1); 00004 //TextLCD lcd(p10, p11, p12, p15, p16, p29, p30); 00005 //Terminal lcd(USBTX, USBRX); 00006 //MobileLCD lcd(p5, p7, p8, p9); 00007 EA_QVGALCD lcd(p5, p6, p7, p8, p9); 00008 00009 int main() { 00010 lcd.printf("helo world!\nhow are you"); 00011 lcd.locate(3,1); 00012 lcd.foreground(0xFFFFFF); 00013 lcd.background(0x00FF00); 00014 lcd.printf("oyoy!"); 00015 wait(3); 00016 lcd.cls(); 00017 for(int i=0; i<130; i++) { 00018 lcd.pixel(0, i, 0xFF0000); 00019 } 00020 00021 for(int i=0; i<130; i++) { 00022 lcd.pixel(129, i, 0xFF00FF); 00023 } 00024 for(int i=0; i<130; i++) { 00025 lcd.pixel(i, 0, 0x0000FF); 00026 } 00027 for(int i=0; i<130; i++) { 00028 lcd.pixel(i, 129, 0xFFFFFF); 00029 } 00030 while(1) { 00031 myled = 1; 00032 wait(0.2); 00033 myled = 0; 00034 wait(0.2); 00035 } 00036 }
Generated on Sat Jul 16 2022 07:20:35 by
1.7.2