Exemplo (Nucleo_BLE_HeartRate) X-NUCLEO-IDB04A1

Dependencies:   BLE_API X_NUCLEO_IDB0XA1 mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002  
00003 SPI device(SPI_MOSI, SPI_MISO, SPI_SCK);
00004  
00005 int main() {
00006     int i = 0;
00007     while(1) {
00008         device.write(0x55);
00009         device.write(i++);
00010         device.write(0xE0);
00011         wait_us(50);
00012     }
00013 }
00014