My Template app for TinyBLE.

Dependencies:   mbed BLE_API nRF51822 eMPL_MPU6050

main.cpp

Committer:
arils
Date:
2020-08-21
Revision:
0:6b6900bd4e1a
Child:
1:cea2f48b1aff

File content as of revision 0:6b6900bd4e1a:

#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);
    }
}