pxt-calliope/libs/microbit-bluetooth/bluetooth.cpp

16 lines
374 B
C++
Raw Normal View History

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