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

MicroBitAccelerometerService Class Reference

MicroBitAccelerometerService Class Reference

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

#include <MicroBitAccelerometerService.h>

Public Member Functions

 MicroBitAccelerometerService (BLEDevice &_ble, MicroBitAccelerometer &_acclerometer)
 Constructor.

Detailed Description

Class definition for a MicroBit BLE Accelerometer Service.

Provides access to live accelerometer data via Bluetooth, and provides basic configuration options.

Definition at line 44 of file MicroBitAccelerometerService.h.


Constructor & Destructor Documentation

MicroBitAccelerometerService ( BLEDevice &  _ble,
MicroBitAccelerometer _accelerometer 
)

Constructor.

Class definition for the custom MicroBit Accelerometer Service.

Create a representation of the AccelerometerService

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

Provides a BLE service to remotely read the state of the accelerometer, and configure its behaviour. Constructor. Create a representation of the AccelerometerService

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

Definition at line 41 of file MicroBitAccelerometerService.cpp.