omarlin benzan tapia
/
frdm_gpio
gj
Revision 0:0a756c4e57de, committed 2015-10-02
- Comitter:
- omarlin
- Date:
- Fri Oct 02 11:30:52 2015 +0000
- Commit message:
- heg;
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 |
diff -r 000000000000 -r 0a756c4e57de main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Oct 02 11:30:52 2015 +0000 @@ -0,0 +1,13 @@ +#include "mbed.h" + +DigitalOut gpo(D0); +DigitalOut led(LED_RED); + +int main() +{ + while (true) { + gpo = !gpo; // toggle pin + led = !led; // toggle led + wait(0.2f); + } +} \ No newline at end of file
diff -r 000000000000 -r 0a756c4e57de mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Oct 02 11:30:52 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/4f6c30876dfa \ No newline at end of file