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
Fork of microbit-dal by
MicroBitLEDService Class Reference
Class definition for the custom MicroBit LED Service. More...
#include <MicroBitLEDService.h>
Public Member Functions | |
| MicroBitLEDService (BLEDevice &_ble, MicroBitDisplay &_display) | |
| Constructor. | |
| void | onDataWritten (const GattWriteCallbackParams *params) |
| Callback. | |
| void | onDataRead (GattReadAuthCallbackParams *params) |
| Callback. | |
Detailed Description
Class definition for the custom MicroBit LED Service.
Provides a BLE service to remotely read and write the state of the LED display.
Definition at line 48 of file MicroBitLEDService.h.
Constructor & Destructor Documentation
| MicroBitLEDService | ( | BLEDevice & | _ble, |
| MicroBitDisplay & | _display | ||
| ) |
Constructor.
Class definition for the custom MicroBit LED Service.
Create a representation of the LEDService
- Parameters:
-
_ble The instance of a BLE device that we're running on. _display An instance of MicroBitDisplay to interface with.
Provides a BLE service to remotely read and write the state of the LED display. Constructor. Create a representation of the LEDService
- Parameters:
-
_ble The instance of a BLE device that we're running on. _display An instance of MicroBitDisplay to interface with.
Definition at line 41 of file MicroBitLEDService.cpp.
Member Function Documentation
| void onDataRead | ( | GattReadAuthCallbackParams * | params ) |
Callback.
Invoked when any of our attributes are read via BLE.
Definition at line 116 of file MicroBitLEDService.cpp.
| void onDataWritten | ( | const GattWriteCallbackParams * | params ) |
Callback.
Invoked when any of our attributes are written via BLE.
Definition at line 84 of file MicroBitLEDService.cpp.
Generated on Tue Jul 12 2022 12:16:39 by
1.7.2
