Skip to content
Snippets Groups Projects
Commit 8c5828e7 authored by Jan Luebbe's avatar Jan Luebbe
Browse files

Switch to 1-bit for the simulator

parent 4d2403f9
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,9 @@ socket = context.socket(zmq.REP)
socket.bind("tcp://*:5570")
def set_pixel(x, y, v):
# 1 bit per pixel
if v:
v = 255
v = v/255.0
row = y / 7
if row in [0, 1, 2, 9]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment