{"id":15893119,"url":"https://github.com/kawamataryo/8bitdo_zero2","last_synced_at":"2025-07-22T02:31:42.590Z","repository":{"id":52228620,"uuid":"355528660","full_name":"kawamataryo/8bitdo_zero2","owner":"kawamataryo","description":"Python code to use the 8bitdo zero2 controller with a Raspberry Pi.","archived":false,"fork":false,"pushed_at":"2022-05-24T20:56:54.000Z","size":9668,"stargazers_count":14,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-27T19:18:09.713Z","etag":null,"topics":["8bitdo","raspberry-pi"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/eightbitdo-zero2/","language":"Python","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/kawamataryo.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":"2021-04-07T12:01:01.000Z","updated_at":"2024-09-26T09:41:54.000Z","dependencies_parsed_at":"2022-09-11T07:21:29.931Z","dependency_job_id":null,"html_url":"https://github.com/kawamataryo/8bitdo_zero2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kawamataryo/8bitdo_zero2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kawamataryo%2F8bitdo_zero2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kawamataryo%2F8bitdo_zero2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kawamataryo%2F8bitdo_zero2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kawamataryo%2F8bitdo_zero2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kawamataryo","download_url":"https://codeload.github.com/kawamataryo/8bitdo_zero2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kawamataryo%2F8bitdo_zero2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266412275,"owners_count":23924476,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["8bitdo","raspberry-pi"],"created_at":"2024-10-06T08:07:39.727Z","updated_at":"2025-07-22T02:31:42.567Z","avatar_url":"https://github.com/kawamataryo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 8bitdo zero2\n\nPython code to use the [8bitdo zero2](https://www.8bitdo.com/zero2/) controller with a Raspberry Pi.\n\n\u003cimg src=\"https://i.gyazo.com/7fee2bfe9c81504cda3ec549eb56601f.jpg)\" style=\"max-width: 450px\"\u003e\n\n# How to use\n\n## Installation\n\n\n```bash\n$ pip install eightbitdo-zero2 \n```\n## Usage example\n\n```python\nfrom gpiozero import LED\nfrom eightbitdo_zero2 import EightBitDoZero2\n\n# led\nred = LED(17)\nblue = LED(10)\n\n\ndef main():\n    # Initialize controller\n    controller = EightBitDoZero2(\n        on_y=red.on,\n        off_y=red.off,\n        on_a=blue.on,\n        off_a=blue.off,\n    )\n\n    # Start listen\n    controller.listen()\n\n\nif __name__ == \"__main__\":\n    main()\n```\n\nThere are more example code in [examples](https://github.com/kawamataryo/8bitdo_zero2/tree/master/examples).\n\n## Options\n\nController initialize options.\n\n|name|type|default|detail|\n|---|---|---|---|\n|device_path|string|\"/dev/input/js0\"|File path to which device is connected.|\n|debug|boolean|False|Debug mode setting. When True, The entered command is displayed on STDOUT.|\n|on_\u003cbutton_name\u003e|function|lambda: None|Action when the button is pressed.|\n|off_\u003cbutton_name\u003e|function|lambda: None|Action when the button is Released.|\n \n# License\n\nThis software is released under the MIT License, see LICENSE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkawamataryo%2F8bitdo_zero2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkawamataryo%2F8bitdo_zero2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkawamataryo%2F8bitdo_zero2/lists"}