{"id":20168302,"url":"https://github.com/kshoji/pxt-bluetooth-mouse","last_synced_at":"2025-04-10T01:52:34.920Z","repository":{"id":55931988,"uuid":"106776461","full_name":"kshoji/pxt-bluetooth-mouse","owner":"kshoji","description":"BLE HID Mouse module for micro:bit","archived":false,"fork":false,"pushed_at":"2023-08-30T08:32:16.000Z","size":136,"stargazers_count":3,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T03:34:49.234Z","etag":null,"topics":["ble","hid","microbit","mouse","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}},"created_at":"2017-10-13T04:05:31.000Z","updated_at":"2021-11-23T13:23:33.000Z","dependencies_parsed_at":"2022-08-15T09:41:00.264Z","dependency_job_id":null,"html_url":"https://github.com/kshoji/pxt-bluetooth-mouse","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshoji%2Fpxt-bluetooth-mouse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshoji%2Fpxt-bluetooth-mouse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshoji%2Fpxt-bluetooth-mouse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshoji%2Fpxt-bluetooth-mouse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kshoji","download_url":"https://codeload.github.com/kshoji/pxt-bluetooth-mouse/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","hid","microbit","mouse","pxt"],"created_at":"2024-11-14T01:07:14.916Z","updated_at":"2025-04-10T01:52:34.890Z","avatar_url":"https://github.com/kshoji.png","language":"C++","funding_links":[],"categories":["🗿 JavaScript and MakeCode"],"sub_categories":["🗿 MakeCode Extensions"],"readme":"# bluetooth-mouse\n\nThis PXT package allows the micro:bit to act as a Mouse peripheral.\n\n## Usage\n\nPlace a ``||bluetooth start mouse service||`` block in your program to enable Bluetooth LE Mouse.\nWith this block, the `micro:bit` starts advertise BLE packets as a Mouse peripheral.\n\n```blocks\nbluetooth.startMouseService();\n```\n\nFor example, hold left mouse button :\n\n```blocks\nbluetooth.setMouseButton(MouseButton.MOUSE_BUTTON_LEFT, ButtonState.BUTTON_DOWN);\n```\n\nFor example, move mouse pointer using acceleration of micro:bit :\n\n```blocks\nbasic.forever(() =\u003e {\n    bluetooth.setMouseSpeed(input.acceleration(Dimension.X) / 8, input.acceleration(Dimension.Y) / 8, 0);\n}\n```\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 Mouse message.\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\nicon.png : copyright By Darkone - Own work, CC BY-SA 2.5, https://commons.wikimedia.org/w/index.php?curid=235633\n\n```package\nbluetooth\nbluetooth-mouse=github:kshoji/pxt-bluetooth-mouse\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkshoji%2Fpxt-bluetooth-mouse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkshoji%2Fpxt-bluetooth-mouse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkshoji%2Fpxt-bluetooth-mouse/lists"}