My Template app for TinyBLE.
Dependencies: mbed BLE_API nRF51822 eMPL_MPU6050
Diff: main.cpp
- Revision:
- 0:6b6900bd4e1a
- Child:
- 1:cea2f48b1aff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Aug 21 23:43:15 2020 +0000 @@ -0,0 +1,24 @@ +#include "mbed.h" + +DigitalOut led_red(22); +DigitalOut led_green(21); +DigitalOut led_blue(23); + +int main() { + while(1) { + led_red = 1; + wait(1); + led_red = 0; + wait(1); + + led_green = 1; + wait(1); + led_green = 0; + wait(1); + + led_blue = 1; + wait(1); + led_red = 0; + wait(1); + } +}