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.
Revision 1:fe05f0673d8b, committed 2014-03-11
- Comitter:
- TimeString
- Date:
- Tue Mar 11 00:39:53 2014 +0000
- Parent:
- 0:53943f6ccacf
- Child:
- 2:69c9b0ff420c
- Commit message:
- D1 and D2 work!
Changed in this revision
| mbed_digital_pin_interruption_receiver.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/mbed_digital_pin_interruption_receiver.cpp Mon Mar 10 23:05:27 2014 +0000
+++ b/mbed_digital_pin_interruption_receiver.cpp Tue Mar 11 00:39:53 2014 +0000
@@ -27,7 +27,8 @@
SLCD slcd;
DigitalOut led(LED_RED);
DigitalOut led1(LED1);
-InterruptIn gpo(D2);
+DigitalOut gpoD1(D1);
+InterruptIn gpoD2(D2);
int count = 0;
@@ -40,10 +41,11 @@
int main() {
slcd.printf("8888");
- gpo.rise(&flip);
+ gpoD2.rise(&flip);
while (true) {
led = !led;
+ gpoD1 = !gpoD1;
//slcd.printf("");
wait(0.5);
- }
+ }
}
\ No newline at end of file