Stephen Dickey
/
C027_HelloWorld_revb
C027 Example: blinking LED
Fork of C027_HelloWorld by
Diff: main.cpp
- Revision:
- 5:41b123533b79
- Parent:
- 4:1fecbc981273
- Child:
- 6:16ceb51fc1fc
diff -r 1fecbc981273 -r 41b123533b79 main.cpp --- a/main.cpp Wed Nov 06 10:49:16 2013 +0000 +++ b/main.cpp Fri Dec 06 09:58:29 2013 +0000 @@ -1,7 +1,13 @@ #include "mbed.h" #include "C027.h" -DigitalOut myled(LED); // on rev A you should reasign the signal to A0 +#ifdef C027_REVA + // on rev A we reasign the signal to A0 + #undef LED + #define LED A0 +#endif + +DigitalOut myled(LED); int main() { while(1) {