From d92b7dd373592cc783c084fc1178a5429c9118e3 Mon Sep 17 00:00:00 2001 From: Luxferre Date: Mon, 22 Dec 2025 17:54:40 +0200 Subject: [PATCH] added requirements.txt --- README.md | 4 +++- repl/tdeck_repl.py | 8 ++++---- requirements.txt | 3 +++ 3 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 requirements.txt diff --git a/README.md b/README.md index e43a966..0ac3d9b 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,9 @@ T-DeckARD modules are divided into two categories: **components**, which are the On T-Deck (Plus), the following components must be installed: - CircuitPython 10.x (tested on 10.0.3); -- Adafruit Library Bundles from the [official CircuitPython page](https://circuitpython.org/libraries); +- Adafruit Library Bundles from the [official CircuitPython page](https://circuitpython.org/libraries). + +If you have `circup` installed, you can connect the device via USB and then run `circup install -r requirements.txt` from the project root. The [tdeck_repl](https://github.com/RetiredWizard/tdeck_repl) distribution is already incorporated into the repo. diff --git a/repl/tdeck_repl.py b/repl/tdeck_repl.py index 8184fd5..94f9984 100644 --- a/repl/tdeck_repl.py +++ b/repl/tdeck_repl.py @@ -14,13 +14,13 @@ class PyDOS_UI: self.arrow = "" self._cmdhistlock = False self._seqCnt = 0 - self._key = bytearray(1) - self._touched = False - _ADDRESS_KBD = 0x55 + self._key = bytearray(1) + self._touched = False + _ADDRESS_KBD = 0x55 self.commandHistory = [""] - self._i2c = I2CDevice(board.I2C(), _ADDRESS_KBD) + self._i2c = I2CDevice(board.I2C(), _ADDRESS_KBD) self.trackball = keypad.Keys( [ board.TRACKBALL_CLICK, diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..ac039de --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +adafruit_connection_manager>=3.1.6 +adafruit_requests>=4.1.15 +adafruit_bus_device>=5.2.14