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.
Dependencies: mbed
main.cpp
00001 #include "mbed.h" 00002 00003 //Initialize Digital Out and Interrupt 00004 InterruptIn pound(p25); 00005 DigitalOut myled(LED1); 00006 00007 //Define Interrupt Functions 00008 void pON () { 00009 myled = 1; 00010 } 00011 void pOFF() { 00012 myled = 0; 00013 { 00014 00015 int main() { 00016 myled = 0; 00017 //Initialize Interrupt for rising and falling edge 00018 pound.rise(&pON); 00019 pound.fall(&pOFF); 00020 while(1) { 00021 } 00022 }
Generated on Mon Aug 1 2022 13:55:49 by
1.7.2