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-os-example-mbed5-blinky by
main.cpp
00001 #include "mbed.h" 00002 00003 InterruptIn enable(D0); //Button active LOW 00004 DigitalOut led(D1); 00005 DigitalOut flash(D2); 00006 void flip() { 00007 led = !led; 00008 } 00009 00010 int main() { 00011 enable.rise(&flip); // attach the address of the flip function to the rising edge 00012 while(1) { // wait around, interrupts will interrupt this! 00013 flash = !flash; 00014 wait(5); 00015 } 00016 00017 }
Generated on Sun Jul 24 2022 11:36:37 by
1.7.2
