2016-06-14 15:30:07 +02:00
|
|
|
#include "pxt.h"
|
|
|
|
#include "MESEvents.h"
|
|
|
|
|
|
|
|
using namespace pxt;
|
|
|
|
//% color=156 weight=79
|
|
|
|
namespace bluetooth {
|
|
|
|
/**
|
|
|
|
* Starts the Bluetooth IO pin service
|
|
|
|
*/
|
|
|
|
//% help=reference/bluetooth/io-pin-service
|
2016-06-14 15:33:18 +02:00
|
|
|
//% blockId=bluetooth-io-pin-service block="start io pin service"
|
2016-06-14 15:30:07 +02:00
|
|
|
void startIOPinService() {
|
|
|
|
new MicroBitIOPinService(*uBit.ble, uBit.io);
|
|
|
|
}
|
|
|
|
}
|