Use Tiny BLE as a joystick. The data is got from an external data source via a serial port.
Dependencies: BLE_API BLE_HID eMPL_MPU6050 mbed nRF51822
Fork of Seeed_Tiny_BLE_Get_Started by
tiny_ble.h@4:89f37a17eba6, 2017-06-12 (annotated)
- Committer:
- bowenfeng
- Date:
- Mon Jun 12 04:10:04 2017 +0000
- Revision:
- 4:89f37a17eba6
- Parent:
- 0:26da608265f8
Use Tiny BLE as a BLE joystick. The direction data is got from an external data source via serial protocol.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
yihui | 0:26da608265f8 | 1 | |
yihui | 0:26da608265f8 | 2 | #ifndef __TINY_BLE_H__ |
yihui | 0:26da608265f8 | 3 | #define __TINY_BLE_H__ |
yihui | 0:26da608265f8 | 4 | |
yihui | 0:26da608265f8 | 5 | #define LED_GREEN p21 |
yihui | 0:26da608265f8 | 6 | #define LED_RED p22 |
yihui | 0:26da608265f8 | 7 | #define LED_BLUE p23 |
yihui | 0:26da608265f8 | 8 | #define BUTTON_PIN p17 |
yihui | 0:26da608265f8 | 9 | #define BATTERY_PIN p1 |
yihui | 0:26da608265f8 | 10 | |
yihui | 0:26da608265f8 | 11 | #define MPU6050_SDA p12 |
yihui | 0:26da608265f8 | 12 | #define MPU6050_SCL p13 |
yihui | 0:26da608265f8 | 13 | |
yihui | 0:26da608265f8 | 14 | #define UART_TX p9 |
yihui | 0:26da608265f8 | 15 | #define UART_RX p11 |
yihui | 0:26da608265f8 | 16 | #define UART_CTS p8 |
yihui | 0:26da608265f8 | 17 | #define UART_RTS p10 |
yihui | 0:26da608265f8 | 18 | |
yihui | 0:26da608265f8 | 19 | #endif // __TINY_BLE_H__ |