Bo-Jhang Ho
/
mbed_digital_pin_interuption_sender
gpio signal
Revision 0:9842f890226a, committed 2014-03-10
- Comitter:
- TimeString
- Date:
- Mon Mar 10 23:06:38 2014 +0000
- Commit message:
- interrupt send
Changed in this revision
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
mbed_digital_pin_interruption_sender.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r 9842f890226a mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Mar 10 23:06:38 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/8e73be2a2ac1 \ No newline at end of file
diff -r 000000000000 -r 9842f890226a mbed_digital_pin_interruption_sender.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed_digital_pin_interruption_sender.cpp Mon Mar 10 23:06:38 2014 +0000 @@ -0,0 +1,15 @@ +#include "mbed.h" + +int main() { + DigitalOut gpo(D0); + DigitalOut led(LED_RED); + + while (true) { + gpo = 1; + led = 1; + wait(0.5); + gpo = 0; + led = 0; + wait(0.5); + } +} \ No newline at end of file