All Projects → kshoji → pxt-bluetooth-gamepad

kshoji / pxt-bluetooth-gamepad

Licence: MIT License
BLE HID Gamepad module for micro:bit

Programming Languages

C++
36643 projects - #6 most used programming language
typescript
32286 projects
c
50402 projects - #5 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to pxt-bluetooth-gamepad

Pxt
Microsoft MakeCode (PXT - Programming eXperience Toolkit)
Stars: ✭ 1,649 (+8145%)
Mutual labels:  microbit, pxt
pxt-neopixel
A Neo-Pixel package for pxt-microbit
Stars: ✭ 47 (+135%)
Mutual labels:  microbit, pxt
tuya-iotos-embeded-sdk-wifi-ble-bk7231n
Tuya IoTOS Embeded SDK WiFi & BLE for BK7231N
Stars: ✭ 21 (+5%)
Mutual labels:  ble
homekit-compatible-temperature-and-humidity-sensor
Build a HomeKit-compatible Bluetooth Temperature and Humidity Sensor
Stars: ✭ 17 (-15%)
Mutual labels:  ble
goble
Bluetooth Low Energy for Go
Stars: ✭ 43 (+115%)
Mutual labels:  ble
Python-For-Kids
A comprehensive and FREE Online Python Development tutorial FOR KIDS utilizing an official BBC micro:bit Development Board going step-by-step into the world of Python for microcontrollers.
Stars: ✭ 621 (+3005%)
Mutual labels:  microbit
bluetooth-gatt-parser
Bluetooth GATT service and characteristic parser
Stars: ✭ 61 (+205%)
Mutual labels:  ble
pxt-minode
mi:node kit(micro:bit IoT Starter Kit by element14) driver package for PXT/microbit
Stars: ✭ 25 (+25%)
Mutual labels:  microbit
ble-utilities-unreal
This is Unreal Engine plugin that allows to scan for BLE devices with Cycling Power service running, connect to one of them and subscribe for its notifications.
Stars: ✭ 48 (+140%)
Mutual labels:  ble
stravaV10
Open source bike GPS: with Strava segments !
Stars: ✭ 34 (+70%)
Mutual labels:  ble
gdx-controllerutils
Controller Utilities for libGDX
Stars: ✭ 48 (+140%)
Mutual labels:  gamepad
android-ponewheel
pOneWheel Android app
Stars: ✭ 66 (+230%)
Mutual labels:  ble
microrust
Learning embedded development with Rust on the micro:bit
Stars: ✭ 52 (+160%)
Mutual labels:  microbit
bluetooth-manager
Java Bluetooth Manager. A library/framework for managing bluetooth adapters, bluetooth devices, GATT services and characteristics
Stars: ✭ 75 (+275%)
Mutual labels:  ble
zhe
Lighter-than-air, peer-to-peer, bounded, non-blocking, non-threaded, etc., publish-subscribe networking
Stars: ✭ 44 (+120%)
Mutual labels:  ble
IOsonata
IOsonata multi-platform multi-architecture power & performance optimized software library for fast and easy IoT MCU firmware development. Object Oriented design, no board package to define, just pure plug & play any boards
Stars: ✭ 40 (+100%)
Mutual labels:  ble
bluetooth
Android Bluetooth examples
Stars: ✭ 80 (+300%)
Mutual labels:  ble
drc-sim-client
Wii U Gamepad Simulator Frontend
Stars: ✭ 52 (+160%)
Mutual labels:  gamepad
ESP32 BLE OTA Arduino
OTA update on ESP32 via BLE
Stars: ✭ 41 (+105%)
Mutual labels:  ble
android-ble-made-easy
An Android Library for handling Bluetooth Low Energy on Android Easy
Stars: ✭ 34 (+70%)
Mutual labels:  ble

bluetooth-gamepad

This PXT package allows the micro:bit to act as a Gamepad peripheral.

Usage

Place a ||bluetooth start gamepad service|| block in your program to enable Bluetooth LE Gamepad. With this block, the micro:bit starts advertise BLE packets as a Gamepad peripheral.

bluetooth.startGamepadService();

For example, hold left gamepad button :

bluetooth.setGamepadButton(GamepadButton.GAMEPAD_BUTTON_LEFT, ButtonState.BUTTON_DOWN);

About test script (test.ts)

The micro:bit's memory(RAM) size is too small to run the test script. To build & run the test script(test.ts), edit pxt.json file, and activate "yotta" : "config" part of the configuration.

This hack makes BLE GATT table smaller, and removes unnecessary BLE services(DFU, Event, and Device Information Service).

Supported Platforms

Currently, tested with micro:bit and Android host only. Mac OS X can connect with micro:bit, but it can't receive Gamepad messages.

Supported targets

  • for PXT/microbit

(The metadata above is needed for package search.)

License

MIT

bluetooth
bluetooth-gamepad=github:kshoji/pxt-bluetooth-gamepad
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].