Created
March 23, 2022 13:44
-
-
Save FoamyGuy/296abd0d2800e1790b8c76276838ab27 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 displayio | |
import time | |
from adafruit_featherwing import tft_featherwing_35 | |
from vectorio_helpers import outlined_rectangle | |
# seems to help the touchscreen not get stuck with chip not found | |
time.sleep(3) | |
# display and touchscreen initialization | |
displayio.release_displays() | |
tft_featherwing = tft_featherwing_35.TFTFeatherWing35() | |
display = tft_featherwing.display | |
# Make the display context | |
main_group = displayio.Group() | |
display.show(main_group) | |
colors = displayio.Palette(3) | |
colors[0] = 0x002299 | |
colors[1] = 0x22aa00 | |
colors[2] = 0xaa0022 | |
open_box = outlined_rectangle.OutlinedRectangle(pixel_shader=colors, width=10, height=6, x=40,y=300, outline_color_index=0, outline_thickness=4) | |
main_group.append(open_box) | |
while True: | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment