A test program to show that nrf52 seems to not be able to export from the online compiler. An error occurs
main.cpp@0:b1c9240ca79d, 2016-10-04 (annotated)
- Committer:
- andrewfelch
- Date:
- Tue Oct 04 22:19:54 2016 +0000
- Revision:
- 0:b1c9240ca79d
First commit - blinks LED on pin p17. Fails to export from online mbed compiler.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewfelch | 0:b1c9240ca79d | 1 | #include "mbed.h" |
andrewfelch | 0:b1c9240ca79d | 2 | |
andrewfelch | 0:b1c9240ca79d | 3 | DigitalOut myLED(p17); |
andrewfelch | 0:b1c9240ca79d | 4 | |
andrewfelch | 0:b1c9240ca79d | 5 | int main( void ) |
andrewfelch | 0:b1c9240ca79d | 6 | { |
andrewfelch | 0:b1c9240ca79d | 7 | while(1) |
andrewfelch | 0:b1c9240ca79d | 8 | { |
andrewfelch | 0:b1c9240ca79d | 9 | myLED = 1; |
andrewfelch | 0:b1c9240ca79d | 10 | wait(0.5); |
andrewfelch | 0:b1c9240ca79d | 11 | myLED = 0; |
andrewfelch | 0:b1c9240ca79d | 12 | wait(0.5); |
andrewfelch | 0:b1c9240ca79d | 13 | } |
andrewfelch | 0:b1c9240ca79d | 14 | } |