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.
Fork of mbed_led_run by
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 unsigned int mask = 0x1; 00009 00010 int main() { 00011 wait(0.8); 00012 00013 while(1) { 00014 myled1 = mask & 0x1; 00015 myled2 = mask & 0x2; 00016 myled3 = mask & 0x4; 00017 myled4 = mask & 0x8; 00018 00019 wait(0.2); 00020 00021 mask = mask << 1; 00022 00023 if (mask & 0x10) 00024 mask = 0x1; 00025 } 00026 }
Generated on Mon Jul 25 2022 04:30:37 by
1.7.2
