Simple test¶
Ensure your device works with this simple test.
examples/lilygo_tdeck_simpletest.py¶
1# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
2# SPDX-FileCopyrightText: Copyright (c) 2023 Robert Grizzell
3#
4# SPDX-License-Identifier: Unlicense
5import time
6from lilygo_tdeck import TDeck
7
8t = TDeck()
9
10while True:
11 keypress = t.get_keypress()
12 if keypress:
13 print(keypress)
14 time.sleep(0.1)