nRF51822 serves as the bridge between BLE central and MCU, which makes cental able to fetch photos from serial camera.
Dependencies: BLE_API mbed nRF51822
Fork of nRF51822_blinky by
main.cpp@0:7dec7e9ac085, 2013-10-11 (annotated)
- Committer:
- dan
- Date:
- Fri Oct 11 12:42:44 2013 +0000
- Revision:
- 0:7dec7e9ac085
- Child:
- 2:c30dc3ae7426
First commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dan | 0:7dec7e9ac085 | 1 | #include "mbed.h" |
dan | 0:7dec7e9ac085 | 2 | |
dan | 0:7dec7e9ac085 | 3 | DigitalOut myled(LED1); |
dan | 0:7dec7e9ac085 | 4 | |
dan | 0:7dec7e9ac085 | 5 | int main() { |
dan | 0:7dec7e9ac085 | 6 | while(1) { |
dan | 0:7dec7e9ac085 | 7 | myled = 1; |
dan | 0:7dec7e9ac085 | 8 | wait(0.2); |
dan | 0:7dec7e9ac085 | 9 | myled = 0; |
dan | 0:7dec7e9ac085 | 10 | wait(0.2); |
dan | 0:7dec7e9ac085 | 11 | } |
dan | 0:7dec7e9ac085 | 12 | } |