mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 05:06:39 +01:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user