testProgram
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 #include "mbed.h" 00002 00003 Serial pc(PTC17, PTC16); // tx - PTC17, rx - PTC16 00004 DigitalOut led1(LED1); 00005 00006 // main() runs in its own thread in the OS 00007 int main() { 00008 pc.printf("Hello World!\n"); 00009 while (true) { 00010 pc.printf("A"); 00011 led1 = !led1; 00012 wait(5); 00013 } 00014 }
Generated on Sun Jul 24 2022 08:21:28 by
1.7.2