{"id":20995399,"url":"https://github.com/todbot/circuitpython_screensaver","last_synced_at":"2025-10-07T06:16:26.849Z","repository":{"id":66886436,"uuid":"397710903","full_name":"todbot/circuitpython_screensaver","owner":"todbot","description":"Do you need a screensaver for CircuitPython? Of course you do","archived":false,"fork":false,"pushed_at":"2024-04-05T18:11:37.000Z","size":85,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-08T02:18:26.129Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/todbot.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}},"created_at":"2021-08-18T19:16:01.000Z","updated_at":"2024-11-12T21:31:12.000Z","dependencies_parsed_at":"2023-06-19T05:38:23.934Z","dependency_job_id":null,"html_url":"https://github.com/todbot/circuitpython_screensaver","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/todbot%2Fcircuitpython_screensaver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/todbot%2Fcircuitpython_screensaver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/todbot%2Fcircuitpython_screensaver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/todbot%2Fcircuitpython_screensaver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/todbot","download_url":"https://codeload.github.com/todbot/circuitpython_screensaver/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254230869,"owners_count":22036259,"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":[],"created_at":"2024-11-19T07:23:39.684Z","updated_at":"2025-10-07T06:16:21.817Z","avatar_url":"https://github.com/todbot.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# circuitpython_screensaver\nDo you need a screensaver for CircuitPython? Of course you do\n\nDemo video of dvdlogo screensaver:\n\nhttps://user-images.githubusercontent.com/274093/129969608-a1ea6c81-c9af-4391-923e-143fcaf08a24.mp4\n\nDemo video of flyingtoasters screensaver:\n\nhttps://user-images.githubusercontent.com/274093/129991271-908bda7a-8aca-4b34-a2d6-8dba57bfbeea.mp4\n\nDemo video of boingball screensaver:\n\nhttps://user-images.githubusercontent.com/274093/130105797-5048cdb5-e53a-4bdf-a39a-1e45ab7f0733.mp4\n\n\nFor more info, see [this tweet thread](https://twitter.com/todbot/status/1428096525217931264).\n\n## Installation\n\n- Copy the entire `screensaver` directory to your CIRCUITPY drive\n- See the `demo_code.py` example (or just copy it over as `code.py`) to see how to use it\n\n## Usage\n\nTo load up a screensaver and run the screensaver forever:\n\n```py\nfrom screensaver import screensaver_dvdlogo\nscreensaver_dvdlogo()\n```\n\nor\n\n```py\nfrom screensaver import screensaver_flyingtoasters\nscreensaver_flyingtoasters()\n\n```\n\nor\n\n```py\nfrom screensaver import screensaver_boingball\nscreensaver_boingball()\n\n```\n\nTo make a screensaver stop after a condition is met, pass in a function as the\n`should_exit_func` parameter. If this function returns `True` the screensaver\nexits.\n\nFor example. this `exit_screensaver()` function returns `True` after 10 seconds:\n\n```py\nsaver_time = time.monotonic()\ndef exit_screensaver():\n  return (time.monotonic() - saver_time \u003e 10) # allow 10 secs of savering\n\nscreensaver_dvdlogo( should_exit_func=exit_screensaver )\n```\n\n## Notes\n\n- Assumes CircuitPython 7, but only for `rainbowio`. And should work in CP6\n- `screensaver_flyingtoasters()` takes optional `num_toasters` and `num_toasts` arguments to tune how many you want\n- `screensaver_boingball()` takes optional `bg_fname` argument for a background image to put behind the ball\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftodbot%2Fcircuitpython_screensaver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftodbot%2Fcircuitpython_screensaver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftodbot%2Fcircuitpython_screensaver/lists"}