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 00003 DigitalOut myled1(LED1); 00004 DigitalOut myled2(LED2); 00005 DigitalOut myled3(LED3); 00006 DigitalOut myled4(LED4); 00007 00008 Serial pc(USBTX, USBRX); // tx, rx 00009 00010 char v=1; 00011 00012 int main() { 00013 while(1) { 00014 myled1=v&0x01; myled2= (v>>1)&0x01; myled3=(v>>2)&0x01; myled4=(v>>3)&0x01; 00015 wait(0.3); 00016 v=v<<1; 00017 if(v>8) v=1; 00018 pc.printf("Bonjour\n\r"); 00019 } 00020 }
Generated on Tue Jul 12 2022 21:44:49 by
1.7.2