Created
February 16, 2022 22:49
-
-
Save FoamyGuy/d05cd1cda47880d4c7ba0b32ab6ce8b9 to your computer and use it in GitHub Desktop.
This file contains 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 board | |
from displayio import OnDiskBitmap, TileGrid, Group | |
main_group = Group() | |
blinka_img = OnDiskBitmap("adafruit_blinka.bmp") | |
tile_grid = TileGrid(bitmap=blinka_img, pixel_shader=blinka_img.pixel_shader) | |
main_group.append(tile_grid) | |
board.DISPLAY.show(main_group) | |
tile_grid.x = board.DISPLAY.width // 2 - blinka_img.width //2 | |
while True: | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment