gpio example for the Freescale freedom platform
Dependencies: mbed
Fork of frdm_gpio by
Revision 1:4f62fc36c30d, committed 2012-10-23
- Comitter:
- emilmont
- Date:
- Tue Oct 23 09:27:00 2012 +0000
- Parent:
- 0:0024ab6b9624
- Child:
- 2:f37d74a0e3e2
- Commit message:
- Update mbed library
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed-KL25Z.lib | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Oct 12 12:41:36 2012 +0000 +++ b/main.cpp Tue Oct 23 09:27:00 2012 +0000 @@ -1,16 +1,15 @@ #include "mbed.h" -int main() -{ +int main() { DigitalOut gpo(PTB8); DigitalOut led(LED_RED); while(1) { gpo = 1; - led=1; // Off + led = 1; // Off wait(2); gpo = 0; - led=0; // on + led = 0; // on wait(2); } } \ No newline at end of file
--- a/mbed-KL25Z.lib Fri Oct 12 12:41:36 2012 +0000 +++ b/mbed-KL25Z.lib Tue Oct 23 09:27:00 2012 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/emilmont/code/mbed-KL25Z/#0d4e7384bff6 +http://mbed.org/users/emilmont/code/mbed-KL25Z/#73c5efe92a6c