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
Revision 0:3886f08e782f, committed 2016-11-10
- Comitter:
- Zvonimir_Belic
- Date:
- Thu Nov 10 18:25:10 2016 +0000
- Commit message:
- VT2_ zvonimir_belic
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Nov 10 18:25:10 2016 +0000 @@ -0,0 +1,10 @@ +#include "mbed.h" +InterruptIn button(p18); // Interrupt on digital pushbutton input p18 +DigitalOut led1(p5); // digital out to p5 +void toggle(void); // function prototype +int main() { +button.rise(&toggle); // attach the address of the toggle +} // function to the rising edge +void toggle() { +led1=!led1; +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Nov 10 18:25:10 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/0ab6a29f35bf \ No newline at end of file