{"id":17990154,"url":"https://github.com/rdbende/pico-ui-kit","last_synced_at":"2026-05-10T05:42:21.576Z","repository":{"id":103209227,"uuid":"467258785","full_name":"rdbende/Pico-UI-kit","owner":"rdbende","description":"A library to easily work with electronic components using Raspberry Pi Pico","archived":false,"fork":false,"pushed_at":"2022-03-07T21:37:40.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-09T15:23:01.634Z","etag":null,"topics":["electronics","raspberry-pi","raspberrypi","rpi-gpio","rpi-pico","ui","uikit"],"latest_commit_sha":null,"homepage":"","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/rdbende.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":"2022-03-07T21:03:16.000Z","updated_at":"2024-10-22T15:54:15.000Z","dependencies_parsed_at":"2023-06-28T23:15:39.138Z","dependency_job_id":null,"html_url":"https://github.com/rdbende/Pico-UI-kit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdbende%2FPico-UI-kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdbende%2FPico-UI-kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdbende%2FPico-UI-kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdbende%2FPico-UI-kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rdbende","download_url":"https://codeload.github.com/rdbende/Pico-UI-kit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247117746,"owners_count":20886439,"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":["electronics","raspberry-pi","raspberrypi","rpi-gpio","rpi-pico","ui","uikit"],"created_at":"2024-10-29T19:16:55.415Z","updated_at":"2026-05-10T05:42:21.533Z","avatar_url":"https://github.com/rdbende.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pico-UI-kit\nA library to easily work with electronic components using Raspberry Pi Pico\n\n# Getting started\nYou can download `uikit.py` file and then copy it over to the Pico using e.g. [Thonny](https://github.com/thonny/thonny/). After that you can import it in your code.\n\nWhen everything is defined in your program, you should call the `run` function, to start the loop which will listen to events in the program, like a buttonpress. This function will block your program until `uikit.quit` is called, so you should put it to the very end of your code.\n\n```python\nimport uikit\n\n[...]  # define components and functions here\n\nuikit.run()\n```\n\n## Button\nYou can define a pushbutton with the Button class, that will run a Python function when it's pressed. The first argument is the GPIO pin number to which the button is connected. The second argument is the function to run when the button is pressed. With `repeat_interval` you can set, how much time to wait before the button can be pressed again.\n\n```python\nimport uikit as ui\n\ndef func():\n    print(\"Hi!\")\n    \nbutton = ui.Button(0, func)\n\n# modify on_pressed\nbutton.on_pressed = ui.quit  # will stop the program when the button is pressed\n\nui.run()\n```\n\n## PotentioMeter\nA potentiometer to input analog data. You can get its value in the 0-100 range, and it can run a function when its value has changed.\n\n## LCD_16x2\nClass to use a 16 by 2, 5x7 character LCD in 8-bit mode. For example: Displaytech 162B\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdbende%2Fpico-ui-kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frdbende%2Fpico-ui-kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdbende%2Fpico-ui-kit/lists"}