embedded scripting language python like
Last active
November 8, 2025 20:42
-
-
Save raspberrypisig/27404c27ac654bb4ad7b7eb76ba859d5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| load("render.star", "render") | |
| def main(): | |
| return render.Root( | |
| child = render.Text("Hello, World!") | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| load("render.star", "render") | |
| load("time.star", "time") | |
| def main(config): | |
| timezone = config.get("timezone") or "America/New_York" | |
| now = time.now().in_location(timezone) | |
| return render.Root( | |
| delay = 500, | |
| child = render.Box( | |
| child = render.Animation( | |
| children = [ | |
| render.Text( | |
| content = now.format("3:04 PM"), | |
| font = "6x13", | |
| ), | |
| render.Text( | |
| content = now.format("3 04 PM"), | |
| font = "6x13", | |
| ), | |
| ], | |
| ), | |
| ), | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment