mbed_blinky program that uses the mbed-src-bmd-200 library instead of mbed
Dependencies: mbed-src-bmd-200
This program is intended to be a sample program when using the BMD-200 Evaluation Board. It should be used with the mbed-src-bmd-200 library. Select the Nordic nRF51822 as your platform.
main.cpp@0:47e0a395f3fd, 2014-12-19 (annotated)
- Committer:
- dcnichols
- Date:
- Fri Dec 19 21:05:07 2014 +0000
- Revision:
- 0:47e0a395f3fd
mbed blinky program using the mbed library for the BMD-200 Evaluation Board
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dcnichols | 0:47e0a395f3fd | 1 | #include "mbed.h" |
dcnichols | 0:47e0a395f3fd | 2 | |
dcnichols | 0:47e0a395f3fd | 3 | DigitalOut myled(LED1); |
dcnichols | 0:47e0a395f3fd | 4 | |
dcnichols | 0:47e0a395f3fd | 5 | int main() { |
dcnichols | 0:47e0a395f3fd | 6 | while(1) { |
dcnichols | 0:47e0a395f3fd | 7 | myled = 1; |
dcnichols | 0:47e0a395f3fd | 8 | wait(0.2); |
dcnichols | 0:47e0a395f3fd | 9 | myled = 0; |
dcnichols | 0:47e0a395f3fd | 10 | wait(0.2); |
dcnichols | 0:47e0a395f3fd | 11 | } |
dcnichols | 0:47e0a395f3fd | 12 | } |