mbed.org local branch of microbit-dal. The real version lives in git at https://github.com/lancaster-university/microbit-dal

Dependencies:   BLE_API nRF51822 mbed-dev-bin

Dependents:   microbit Microbit IoTChallenge1 microbit ... more

Embed: (wiki syntax)

« Back to documentation index

MicroBitButtonService Class Reference

MicroBitButtonService Class Reference

Class definition for a MicroBit BLE Button Service. More...

#include <MicroBitButtonService.h>

Public Member Functions

 MicroBitButtonService (BLEDevice &_ble)
 Constructor.

Detailed Description

Class definition for a MicroBit BLE Button Service.

Provides access to live button data via BLE, and provides basic configuration options.

Definition at line 43 of file MicroBitButtonService.h.


Constructor & Destructor Documentation

MicroBitButtonService ( BLEDevice &  _ble )

Constructor.

Class definition for the custom MicroBit Button Service.

Create a representation of the ButtonService

Parameters:
_bleThe instance of a BLE device that we're running on.

Provides a BLE service to remotely read the state of each button, and configure its behaviour. Constructor. Create a representation of the ButtonService

Parameters:
_bleThe instance of a BLE device that we're running on.

Definition at line 41 of file MicroBitButtonService.cpp.