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 led1(LED1); 00004 DigitalOut led2(LED2); 00005 DigitalOut led3(LED3); 00006 00007 static int i = 0; 00008 00009 int main() { 00010 led1 = led2 = led3 = 1; 00011 while(1) { 00012 if (i%3 == 0){ 00013 led1 = 0; 00014 led2 = led3 = 1; 00015 } 00016 else if (i%3 == 1){ 00017 led2 = 0; 00018 led1 = led3 = 1; 00019 } 00020 else{ 00021 led3 = 0; 00022 led1 = led2 = 1; 00023 } 00024 i++; 00025 wait(1); 00026 } 00027 }
Generated on Mon Aug 22 2022 09:57:14 by
1.7.2