Skip to content

Commit 841c87c

Browse files
committed
adding simpletest for tft24
1 parent 50b8a9e commit 841c87c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import board
2+
from adafruit_featherwing import tft_featherwing_24
3+
4+
tft_featherwing = tft_featherwing_24.TFTFeatherWing24()
5+
6+
f = open("/sd/tft_featherwing.txt", "w")
7+
f.write("Blinka\nTFT 2.4\" FeatherWing")
8+
f.close()
9+
10+
f = open("/sd/tft_featherwing.txt", "r")
11+
print(f.read())
12+
f.close()
13+
14+
while True:
15+
if not tft_featherwing.touchscreen.buffer_empty:
16+
print(tft_featherwing.touchscreen.read_data())

0 commit comments

Comments
 (0)