Skip to content

jaustin/pxt-bluetooth-keyboard

 
 

Repository files navigation

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.

bluetooth.startKeyboardService();

TBD To Send Hello World! to the paired host, place block like this:

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

bluetooth
bluetooth-keyboard=github:kshoji/pxt-bluetooth-keyboard

About

BLE HID Keyboard module for micro:bit

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 77.3%
  • C 12.6%
  • TypeScript 9.8%
  • Makefile 0.3%