Easiest Hello World example!
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 #include "mbed.h" 00002 #include "TextLCD.h" 00003 DigitalOut myled(LED1); 00004 TextLCD ark(PA_0,PA_1,PA_4,PB_0,PC_1,PC_0);// rs, e, d4-d7 00005 00006 int main() 00007 { 00008 ark.printf("HELLO MICRO WORLD");//Introduce the text here 00009 float i=0.0; 00010 while(1) { //This while is just a clock counter 00011 ark.locate(0,1); 00012 ark.printf("%f",i); 00013 i=i+0.5; 00014 } 00015 }
Generated on Fri Jul 29 2022 03:20:44 by
1.7.2