Using the MBED BLE library and Nordic Puck library this is a simple scoring application using Bluetooth LE. It monitors three analog inputs and triggers on reception of a pulse on any one recording data for a short period on all three. This is then published via BLE characteristics. It's a demonstrator for a new UI dev toolkit that is under development.
Fork of Example_Puck_BLE by
Revision 9:f2b2ebc6d908, committed 2014-08-24
- Comitter:
- Bobty
- Date:
- Sun Aug 24 20:50:22 2014 +0000
- Parent:
- 8:87a3708dca9c
- Child:
- 10:a2ba0cef85aa
- Commit message:
- Works ok with 3 channels but fails when Timer exceeds 2^31 us
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat Aug 23 20:50:06 2014 +0000 +++ b/main.cpp Sun Aug 24 20:50:22 2014 +0000 @@ -17,7 +17,7 @@ const UUID DIVISOR_GATT_CHARACTERISTIC = stringToUUID("nod.score1.div "); const UUID INTERVAL_US_GATT_CHARACTERISTIC = stringToUUID("nod.score1.intus"); -const int NUM_SAMPLE_CHANNELS = 1; +const int NUM_SAMPLE_CHANNELS = 3; // Sample interval (uS) uint32_t sampleIntervalUs = 10000;