added 'microbit-bluetooth' package
This commit is contained in:
15
libs/microbit-bluetooth/bluetooth.cpp
Normal file
15
libs/microbit-bluetooth/bluetooth.cpp
Normal file
@ -0,0 +1,15 @@
|
||||
#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
|
||||
//% blockid=bluetooth-io-pin-service block="start io pin service"
|
||||
void startIOPinService() {
|
||||
new MicroBitIOPinService(*uBit.ble, uBit.io);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user