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.
seq_led.cpp
00001 #include "mbed.h" 00002 00003 00004 //pin direction name_pin(pin_MBED) 00005 DigitalOut led1(LED1); 00006 DigitalOut led2(LED2); 00007 DigitalOut led3(LED3); 00008 DigitalOut led4(LED4); 00009 00010 int main(void){ 00011 while(1){ 00012 led1 = 1; 00013 led2 = 0; 00014 led3 = 0; 00015 led4 = 0; 00016 wait(0.2); 00017 00018 led1 = 0; 00019 led2 = 1; 00020 led3 = 0; 00021 led4 = 0; 00022 wait(0.2); 00023 00024 led1 = 0; 00025 led2 = 0; 00026 led3 = 1; 00027 led4 = 0; 00028 wait(0.2); 00029 00030 led1 = 0; 00031 led2 = 0; 00032 led3 = 0; 00033 led4 = 1; 00034 wait(0.2); 00035 } 00036 00037 }
Generated on Mon Aug 1 2022 19:18:07 by
1.7.2