We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 646897d commit 4e34356Copy full SHA for 4e34356
cpython/lib/optional/pydos_ui_lilygokbd.py
@@ -46,6 +46,8 @@ def serial_bytes_available(self):
46
if self._key[0] != 0:
47
retval = 1
48
self._touched = True
49
+ else:
50
+ retval = self.uart_bytes_available()
51
else:
52
53
@@ -65,6 +67,10 @@ def read_keyboard(self,num):
65
67
retval = chr(self._key[0])
66
68
self._touched = False
69
num -= 1
70
71
+ if self.uart_bytes_available():
72
+ retval = stdin.read(1)
73
+ num -= 1
74
75
return retval
76
@@ -238,4 +244,4 @@ def input(disp_text=None):
238
244
239
245
print(" \x08",end="")
240
246
241
- return keys
247
+ return keys
0 commit comments