Created
December 26, 2025 16:16
-
-
Save jamesporter/6d98fc9d32daebf41eec81443cbe2a5d to your computer and use it in GitHub Desktop.
Little hello-colours for Inky Frame
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
| import inky_frame | |
| import random | |
| from picographics import PicoGraphics, DISPLAY_INKY_FRAME as DISPLAY | |
| graphics = PicoGraphics(DISPLAY) | |
| graphics.set_pen(inky_frame.WHITE) | |
| graphics.clear() | |
| for x in range(30): | |
| for y in range(22): | |
| graphics.set_pen(random.randint(0,6)) | |
| graphics.rectangle(x * 20, y * 20, 20, 20) | |
| graphics.update() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment