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 Ticker_HelloWorld by
main.cpp
00001 #include "mbed.h" 00002 00003 Ticker flipper1; 00004 Ticker flipper2; 00005 DigitalOut led1(PA_7); //D12 00006 DigitalOut led2(LED1); 00007 DigitalOut led3(PB_6); // D11 00008 00009 void flip() { 00010 led2 = !led2; 00011 } 00012 00013 void flip_led3() { 00014 led3 = !led3; 00015 } 00016 00017 00018 00019 int main() { 00020 led2 = 1; 00021 flipper1.attach(&flip, 0.1); 00022 flipper2.attach(&flip_led3, 0.2); 00023 00024 while(1) { 00025 led1 = !led1; 00026 wait(0.2); 00027 } 00028 }
Generated on Fri Jul 15 2022 16:38:11 by
1.7.2
