To get started with Seeed Tiny BLE, include detecting motion, button and battery level.

Dependencies:   BLE_API eMPL_MPU6050 mbed nRF51822

tiny_ble.h

Committer:
yihui
Date:
2015-11-05
Revision:
3:24e365bd1b97
Parent:
0:26da608265f8

File content as of revision 3:24e365bd1b97:


#ifndef __TINY_BLE_H__
#define __TINY_BLE_H__

#define LED_GREEN   p21
#define LED_RED     p22
#define LED_BLUE    p23
#define BUTTON_PIN  p17
#define BATTERY_PIN p1

#define MPU6050_SDA p12
#define MPU6050_SCL p13

#define UART_TX     p9
#define UART_RX     p11
#define UART_CTS    p8
#define UART_RTS    p10

#endif // __TINY_BLE_H__