support for starting the temperature service #113

This commit is contained in:
Peli de Halleux 2016-06-14 13:24:55 -07:00
parent 2ab2535966
commit 23eefb28d2
3 changed files with 28 additions and 0 deletions

View File

@ -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);
}
}

View File

@ -18,6 +18,13 @@ declare namespace bluetooth {
//% help=bluetooth/start-led-service
//% blockId=bluetooth_start_led_service block="bluetooth led service" shim=bluetooth::startLEDService
function startLEDService(): void;
/**
* Starts the temperature service
*/
//% help=bluetooth/start-led-service
//% blockId=bluetooth_start_temperature_service block="bluetooth temperature service" shim=bluetooth::startTemperatureService
function startTemperatureService(): void;
}
// Auto-generated. Do not edit. Really.

View File

@ -614,6 +614,18 @@ namespace pxsim.pins {
}
namespace pxsim.bluetooth {
export function startIOPinService(): void {
// TODO
}
export function startLEDService(): void {
// TODO
}
export function startTemperatureService(): void {
// TODO
}
}
namespace pxsim.images {
export function createImage(img: Image) { return img }
export function createBigImage(img: Image) { return img }