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 InterruptIn_HelloWorld by
main.cpp
00001 #include "mbed.h" 00002 00003 InterruptIn button(USER_BUTTON); // pull-up 00004 DigitalOut led(LED2); 00005 DigitalOut flash(PA_7); // PA_7 --> D11 pin 00006 00007 void flip() { 00008 led = !led; 00009 } 00010 00011 int main() { 00012 button.fall(&flip); 00013 while(1) { 00014 flash = !flash; 00015 wait(0.25); 00016 } 00017 }
Generated on Thu Jul 14 2022 00:55:42 by
1.7.2
