https://github.com/kshoji/pxt-bluetooth-keyboard
BLE HID Keyboard module for micro:bit
https://github.com/kshoji/pxt-bluetooth-keyboard
ble hid keyboard microbit pxt
Last synced: about 1 year ago
JSON representation
BLE HID Keyboard module for micro:bit
- Host: GitHub
- URL: https://github.com/kshoji/pxt-bluetooth-keyboard
- Owner: kshoji
- License: mit
- Created: 2017-09-25T23:25:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-29T04:30:17.000Z (over 8 years ago)
- Last Synced: 2025-03-24T03:34:50.483Z (about 1 year ago)
- Topics: ble, hid, keyboard, microbit, pxt
- Language: C++
- Homepage:
- Size: 177 KB
- Stars: 50
- Watchers: 8
- Forks: 19
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-microbit - Bluetooth Keyboard - MakeCode extension for BLE HID Keyboard module for micro:bit V1. (🗿 JavaScript and MakeCode / 🗿 MakeCode Extensions)
README
# bluetooth-keyboard
This PXT package allows the micro:bit to act as a Keyboard peripheral.
## Usage
Place a ``||bluetooth start keyboard service||`` block in your program to enable Bluetooth LE Keyboard.
With this block, the `micro:bit` starts advertise BLE packets as a Keyboard peripheral.
```blocks
bluetooth.startKeyboardService();
```
**TBD**
To Send `Hello World!` to the paired host, place block like this:
```blocks
bluetooth.keyboardSendText("Hello World!");
```
## Supported Platforms
Currently, tested with `micro:bit` and `Android` host only.
Mac OS X can connect with `micro:bit`, but it can't receive Keyboard message.
## Supported targets
* for PXT/microbit
(The metadata above is needed for package search.)
## License
MIT
```package
bluetooth
bluetooth-keyboard=github:kshoji/pxt-bluetooth-keyboard
```