{"id":20168319,"url":"https://github.com/kshoji/pxt-bluetooth-gamepad","last_synced_at":"2025-04-10T01:52:41.681Z","repository":{"id":145998334,"uuid":"122185813","full_name":"kshoji/pxt-bluetooth-gamepad","owner":"kshoji","description":"BLE HID Gamepad module for micro:bit","archived":false,"fork":false,"pushed_at":"2018-03-01T10:50:40.000Z","size":48,"stargazers_count":27,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T03:34:51.006Z","etag":null,"topics":["ble","gamepad","microbit","pxt"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kshoji.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-02-20T10:46:37.000Z","updated_at":"2024-01-06T14:43:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"fab4e4c0-01d7-4b72-9247-cdc236841aed","html_url":"https://github.com/kshoji/pxt-bluetooth-gamepad","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshoji%2Fpxt-bluetooth-gamepad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshoji%2Fpxt-bluetooth-gamepad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshoji%2Fpxt-bluetooth-gamepad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshoji%2Fpxt-bluetooth-gamepad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kshoji","download_url":"https://codeload.github.com/kshoji/pxt-bluetooth-gamepad/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248142941,"owners_count":21054671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ble","gamepad","microbit","pxt"],"created_at":"2024-11-14T01:07:17.550Z","updated_at":"2025-04-10T01:52:41.658Z","avatar_url":"https://github.com/kshoji.png","language":"C++","funding_links":[],"categories":["🗿 JavaScript and MakeCode"],"sub_categories":["🗿 MakeCode Extensions"],"readme":"# bluetooth-gamepad\n\nThis PXT package allows the micro:bit to act as a Gamepad peripheral.\n\n## Usage\n\nPlace a ``||bluetooth start gamepad service||`` block in your program to enable Bluetooth LE Gamepad.\nWith this block, the `micro:bit` starts advertise BLE packets as a Gamepad peripheral.\n\n```blocks\nbluetooth.startGamepadService();\n```\n\nFor example, hold left gamepad button :\n\n```blocks\nbluetooth.setGamepadButton(GamepadButton.GAMEPAD_BUTTON_LEFT, ButtonState.BUTTON_DOWN);\n```\n\n## About test script (test.ts)\n\nThe micro:bit's memory(RAM) size is too small to run the test script.\nTo build \u0026 run the test script(test.ts), edit `pxt.json` file, and activate `\"yotta\" : \"config\"` part of the configuration.\n\nThis hack makes `BLE GATT table` smaller, and removes unnecessary BLE services(DFU, Event, and Device Information Service).\n\n## Supported Platforms\n\nCurrently, tested with `micro:bit` and `Android` host only.\nMac OS X can connect with `micro:bit`, but it can't receive Gamepad messages.\n\n## Supported targets\n\n* for PXT/microbit\n\n(The metadata above is needed for package search.)\n\n## License\n\nMIT\n\n```package\nbluetooth\nbluetooth-gamepad=github:kshoji/pxt-bluetooth-gamepad\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkshoji%2Fpxt-bluetooth-gamepad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkshoji%2Fpxt-bluetooth-gamepad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkshoji%2Fpxt-bluetooth-gamepad/lists"}