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 "C027.h" 00003 #include "C12832_lcd.h" 00004 00005 #define MBED_APPS_SHIELD 00006 //#define MBED_APPS_BOARD 00007 00008 #if defined(MBED_APPS_SHIELD) 00009 C12832_LCD lcd(D11, D13, D12, D7, D10); 00010 DigitalOut myled(P3_25); 00011 #elif defined(MBED_APPS_BOARD) 00012 C12832_LCD lcd(p5, p7, p6, p8, p11); 00013 DigitalOut myled(LED1); 00014 #else 00015 #error application board not defined 00016 #endif 00017 00018 int main() { 00019 while(1) { 00020 myled = 1; 00021 wait(0.2); 00022 myled = 0; 00023 wait(0.2); 00024 lcd.cls(); 00025 lcd.locate(0,3); 00026 lcd.printf("Hello IoT Workshop\n"); 00027 } 00028 }
Generated on Tue Jul 12 2022 19:23:59 by
1.7.2