color table and various fixes

- use the actual color table in tagtype json for rendering images (until now, that color table was ignored)
- added proper ordered dithering (works with all colors now, not just gray and pink)
- on the static image content card, you can now choose floyd-steinberg or ordered dithering (or turn dithering off)
- added ÅÄÖ to twcondensed20 font
- small bugfixes
- fix serial passthrough via UART in OEPL-flasher.py
This commit is contained in:
Nic Limper
2024-03-26 01:13:02 +01:00
parent cb2f3aed5a
commit 6197b8962e
54 changed files with 207 additions and 301 deletions

View File

@@ -418,17 +418,19 @@ def main():
if transport == TRANSPORT_TCP:
try:
data = tcp_socket.recv(1)
data_str = data.decode('utf-8')
except socket.timeout:
data = ""
data_str = ""
pass
else:
try:
data = ser.read(1)
data_str = data.decode('utf-8')
except UnicodeDecodeError:
data = ""
data_str = ""
pass
print(data, end='')
if chr(0x04) in data:
print(data_str, end='')
if chr(0x04) in data_str:
break
except KeyboardInterrupt: