Skip to content

Commit bfc98c5

Browse files
committed
Added command history and line editing
1 parent 9f2c6f2 commit bfc98c5

3 files changed

Lines changed: 228 additions & 97 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
**The PyDOS repository: https://github.com/RetiredWizard/PyDOS**
77

88
Currently this requires:
9-
- CircuitPython 9.x (alpha) - See [releases](https://github.com/RetiredWizard/PyDOS_virtkeyboard/releases) for firmware download
9+
- CircuitPython 9.x - See https://www.circuitpython.org/downloads for firmware download
1010

1111
The hardware currently supported uses one or more of:
1212
- "dot clock"/"666" display
@@ -17,7 +17,9 @@ The hardware currently supported uses one or more of:
1717

1818
This has only been tested using the [HackTablet](https://hackaday.io/project/185831-hacktablet-crestron-tss-752-teardown-rebuild), the [MaTouch ESP32-S3 7"](https://www.makerfabs.com/index.php?route=product/product&product_id=774) and the [Adafruit TFT FeatherWing V2](https://www.adafruit.com/product/3315)
1919

20-
The [**lib/pydos_ui_virt.py**](https://github.com/RetiredWizard/PyDOS_virtkeyboard/blob/main/lib/pydos_ui_virt.py) file performs the keyboard abstraction for PyDOS.
20+
The [**lib/pydos_ui_virt.py**](https://github.com/RetiredWizard/PyDOS_virtkeyboard/blob/main/lib/pydos_ui_virt.py) file performs the keyboard abstraction for PyDOS.
21+
22+
Up/Down arrow, command history and line editing is supported. The Hacktablet has the arrow icons printed along the right border of the screen but for other tablets the vitual keyboard bitmap has not yet been updated.
2123

2224
To setup the virtual keyboard in PyDOS follow the standard PyDOS installation instructions and after
2325
the setup.bat file has been run perform the following steps:

lib/gt911_touch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,6 @@ def _read(self, register, length, irq_pin=None) -> bytearray:
236236

237237
i2c.write(bytes([((register & 0xFF00) >> 8),(register & 0xFF)]))
238238
result = bytearray(length)
239-
time.sleep(.06)
240239

241240
i2c.readinto(result)
242241
if self._debug:
@@ -249,6 +248,7 @@ def _write(self, register, values) -> None:
249248
values = [((register & 0xFF00) >> 8), (register & 0xFF)] + [(v & 0xFF) for v in values]
250249
#print("register: %02X, value: %02X" % (values[0], values[1]))
251250
i2c.write(bytes(values))
251+
time.sleep(.05)
252252

253253
if self._debug:
254254
print("\t$%02X <= %s" % (values[0], [hex(i) for i in values[1:]]))

0 commit comments

Comments
 (0)