support for starting the temperature service #113
This commit is contained in:
@ -21,4 +21,13 @@ namespace bluetooth {
|
||||
void startLEDService() {
|
||||
new MicroBitLEDService(*uBit.ble, uBit.display);
|
||||
}
|
||||
|
||||
/**
|
||||
* Starts the temperature service
|
||||
*/
|
||||
//% help=bluetooth/start-temperature-service
|
||||
//% blockId=bluetooth_start_temperature_service block="bluetooth temperature service"
|
||||
void startTemperatureService() {
|
||||
new MicroBitTemperatureService(*uBit.ble, uBit.thermometer);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user