{"id":21102543,"url":"https://github.com/sytxlabs/displaypad","last_synced_at":"2025-05-16T18:34:41.444Z","repository":{"id":258464015,"uuid":"873763591","full_name":"SytxLabs/DisplayPad","owner":"SytxLabs","description":"This library allows you to customize your own Mountain DisplayPad by assigning each button its own custom function, image or color.","archived":false,"fork":false,"pushed_at":"2024-10-19T02:34:30.000Z","size":39,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-10-20T03:38:15.576Z","etag":null,"topics":["displaypad","mountain","mountain-displaypad"],"latest_commit_sha":null,"homepage":"https://github.com/SytxLabs/DisplayPad","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/SytxLabs.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-16T17:16:42.000Z","updated_at":"2024-10-19T02:33:13.000Z","dependencies_parsed_at":"2024-10-20T03:51:01.664Z","dependency_job_id":null,"html_url":"https://github.com/SytxLabs/DisplayPad","commit_stats":null,"previous_names":["sytxlabs/displaypad","sytxlabs/displaypad.py"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SytxLabs%2FDisplayPad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SytxLabs%2FDisplayPad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SytxLabs%2FDisplayPad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SytxLabs%2FDisplayPad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SytxLabs","download_url":"https://codeload.github.com/SytxLabs/DisplayPad/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225444620,"owners_count":17475354,"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":["displaypad","mountain","mountain-displaypad"],"created_at":"2024-11-19T23:55:46.653Z","updated_at":"2024-11-19T23:55:47.267Z","avatar_url":"https://github.com/SytxLabs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DisplayPad\nThis library allows you to customize your own Mountain DisplayPad by assigning each button its own custom function, image or color.\n\n# Example\n\n```python\nimport asyncio\n\nfrom displaypad import DisplayPad\n\n\nasync def main():\n    # Create a new DisplayPad instance\n    pad = DisplayPad.DisplayPad()\n\n    # Define event handlers\n    @pad.on('down')\n    def on_key_down(key_index):\n        print(f\"Key {key_index} has been pressed.\")\n\n    # Define event handlers\n    @pad.on('up')\n    def on_key_down(key_index):\n        print(f\"Key {key_index} has been released.\")\n\n    # Define event handlers\n    @pad.on('error')\n    def on_error(error):\n        print(f\"Error: {error}\")\n\n    # Clear all keys\n    pad.clear_all_keys()\n\n    # Set the first three keys to red, green and blue\n    pad.set_key_color(0, 255, 0, 0)\n    pad.set_key_color(1, 0, 255, 0)\n    pad.set_key_color(2, 0, 0, 255)\n\n    # Keep the script running\n    while True:\n        await asyncio.sleep(1)\n\nif __name__ == \"__main__\":\n    # Run the main function\n    asyncio.run(main())\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsytxlabs%2Fdisplaypad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsytxlabs%2Fdisplaypad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsytxlabs%2Fdisplaypad/lists"}