Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API mbed-dev-bin nRF51822-bluetooth-mdw
Fork of microbit-dal-bluetooth-mdw by
Diff: inc/bluetooth/MicroBitAnimationService.h
- Revision:
- 77:9909cbcd0ece
- Parent:
- 74:9771cd712730
- Child:
- 79:ab48b2043312
diff -r 50e98a8862ab -r 9909cbcd0ece inc/bluetooth/MicroBitAnimationService.h
--- a/inc/bluetooth/MicroBitAnimationService.h Tue Dec 27 10:59:38 2016 +0000
+++ b/inc/bluetooth/MicroBitAnimationService.h Tue Dec 27 11:55:17 2016 +0000
@@ -30,14 +30,7 @@
#include "Animator.h"
#include "ble/BLE.h"
-// UUIDs for our service and characteristics
-extern const uint8_t MicroBitAnimationServiceUUID[];
-// animation type: indicates the type of animation that should be executed by the microbit : R|W
-extern const uint8_t MicroBitAnimationServiceAnimationTypeCharacteristicUUID[];
-// animation status: indicates whether or not an animation is currently in progress : R|N
-extern const uint8_t MicroBitAnimationServiceAnimationStatusCharacteristicUUID[];
-// animation control: allows various types of control to be exercised (start|stop|faster|slower) : W
-extern const uint8_t MicroBitAnimationServiceAnimationControlCharacteristicUUID[];
+// TODO: UUIDs for our service and characteristics
/**
* Class definition for a MicroBit BLE Animation Service.
@@ -63,15 +56,14 @@
// Bluetooth stack we're running on.
BLEDevice &ble;
- // memory for our Animation characteristics.
- uint8_t animation_type_buffer[1];
- uint8_t animation_status_buffer[1];
- uint8_t animation_control_buffer[1];
+
+ // TODO: memory for our Animation characteristics.
+
- // handles on this service's characterisitics.
- GattAttribute::Handle_t animationTypeCharacteristicHandle;
- GattAttribute::Handle_t animationStatusCharacteristicHandle;
- GattAttribute::Handle_t animationControlCharacteristicHandle;
+
+ // TODO: handles on this service's characterisitics.
+
+
void animationStatusUpdate(MicroBitEvent e);
