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.
Diff: main.cpp
- Revision:
- 3:52ced27ad588
- Parent:
- 0:24ccc6d0c391
- Child:
- 4:684525c93d74
--- a/main.cpp Tue Oct 10 15:13:26 2017 +0000
+++ b/main.cpp Tue Feb 06 12:42:56 2018 +0000
@@ -8,9 +8,10 @@
void sw1FallingEdge();
//Global Objects
-DigitalOut red_led(D7);
-DigitalOut green_led(D5);
-InterruptIn sw1(D4);
+DigitalOut red_led(LED3);
+DigitalOut yellow_led(LED2);
+DigitalOut green_led(LED1);
+InterruptIn sw1(USER_BUTTON);
//Interrupt service routine for a rising edge (press)
void sw1FallingEdge() {