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 "TextLCD.h" 00003 00004 #define WAIT_time 1.0 00005 #define D() wait(WAIT_time) 00006 #define ON 1 00007 #define OFF 0 00008 00009 DigitalOut mled0(LED1); 00010 DigitalOut mled1(LED2); 00011 //DigitalOut mled2(LED3); 00012 //DigitalOut mled3(LED4); 00013 00014 TextLCD lcd(p24, p25, p26, p27, p28, p29, p30,16,2); // rs, rw, e, d0, d1, d2, d3 00015 00016 int main() { 00017 while(1){ 00018 00019 mled0 = ON; 00020 00021 // Row 1 00022 lcd.cls(); 00023 lcd.locate(0,0); 00024 lcd.printf("Hello Iiko"); 00025 00026 D(); 00027 00028 mled0=OFF; 00029 mled1=ON; 00030 00031 // Row 2 00032 lcd.cls(); 00033 lcd.locate(0,1); 00034 lcd.printf("Oide World!"); 00035 00036 D(); 00037 00038 mled1=OFF; 00039 }//while 00040 }//main 00041 00042
Generated on Sat Jul 30 2022 14:15:05 by
1.7.2