CUED IIA Project

Dependencies:   BLE_API mbed nRF51822

Fork of BLE_GATT_Example by Bluetooth Low Energy

Committer:
AidasL
Date:
Wed May 31 22:13:36 2017 +0000
Revision:
23:708cc5ef2604
Child:
24:baa43caa2f3d
Initial commit;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AidasL 23:708cc5ef2604 1 #include "mbed.h"
AidasL 23:708cc5ef2604 2
AidasL 23:708cc5ef2604 3 #ifndef SENSORS_H
AidasL 23:708cc5ef2604 4 #define SENSORS_H
AidasL 23:708cc5ef2604 5
AidasL 23:708cc5ef2604 6 typedef struct {
AidasL 23:708cc5ef2604 7
AidasL 23:708cc5ef2604 8 uint16_t flex[12];
AidasL 23:708cc5ef2604 9 uint16_t acc[2][6];
AidasL 23:708cc5ef2604 10
AidasL 23:708cc5ef2604 11 } Datapacket;
AidasL 23:708cc5ef2604 12
AidasL 23:708cc5ef2604 13 typedef struct {
AidasL 23:708cc5ef2604 14
AidasL 23:708cc5ef2604 15 uint8_t pixels[8];
AidasL 23:708cc5ef2604 16
AidasL 23:708cc5ef2604 17 } Screen;
AidasL 23:708cc5ef2604 18
AidasL 23:708cc5ef2604 19 void readflex(Datapacket data);
AidasL 23:708cc5ef2604 20
AidasL 23:708cc5ef2604 21
AidasL 23:708cc5ef2604 22 void readacc(Datapacket data);
AidasL 23:708cc5ef2604 23
AidasL 23:708cc5ef2604 24 void setup(void);
AidasL 23:708cc5ef2604 25
AidasL 23:708cc5ef2604 26
AidasL 23:708cc5ef2604 27
AidasL 23:708cc5ef2604 28
AidasL 23:708cc5ef2604 29
AidasL 23:708cc5ef2604 30
AidasL 23:708cc5ef2604 31
AidasL 23:708cc5ef2604 32
AidasL 23:708cc5ef2604 33
AidasL 23:708cc5ef2604 34
AidasL 23:708cc5ef2604 35
AidasL 23:708cc5ef2604 36 #endif