sdsds
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 /* Program Example 10.4: writing data to an SD card 00002 */ 00003 #include "mbed.h" 00004 00005 Serial pc(USBTX, USBRX); 00006 DigitalOut myled(LED1); 00007 00008 int main() 00009 { 00010 while (1) { //a continuous loop is created 00011 myled = 1; //switch the led on, by setting the output to logic 1 00012 wait(0.2); //wait 0.2 seconds 00013 myled = 0; //switch the led off 00014 wait(0.2); //wait 0.2 seconds 00015 } 00016 00017 }
Generated on Tue Oct 29 2024 02:14:11 by
1.7.2