Exemplo (Nucleo_BLE_HeartRate) X-NUCLEO-IDB04A1

Dependencies:   BLE_API X_NUCLEO_IDB0XA1 mbed

main.cpp

Committer:
wlmattos
Date:
2016-09-02
Revision:
0:0bb81c079a85

File content as of revision 0:0bb81c079a85:

#include "mbed.h"
 
SPI device(SPI_MOSI, SPI_MISO, SPI_SCK);
 
int main() {
    int i = 0;
    while(1) {
        device.write(0x55);
        device.write(i++);
        device.write(0xE0);
        wait_us(50);
    }
}