hd44780: Wrap code to 80 columns
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
51051478af
commit
ef1bf60ab7
|
@ -59,8 +59,8 @@ class HD44780:
|
||||||
if new_data == old_data:
|
if new_data == old_data:
|
||||||
continue
|
continue
|
||||||
# Find the position of all changed bytes in this framebuffer
|
# Find the position of all changed bytes in this framebuffer
|
||||||
diffs = [[i, 1] for i, (nd, od) in enumerate(zip(new_data, old_data))
|
diffs = [[i, 1] for i, (n, o) in enumerate(zip(new_data, old_data))
|
||||||
if nd != od]
|
if n != o]
|
||||||
# Batch together changes that are close to each other
|
# Batch together changes that are close to each other
|
||||||
for i in range(len(diffs)-2, -1, -1):
|
for i in range(len(diffs)-2, -1, -1):
|
||||||
pos, count = diffs[i]
|
pos, count = diffs[i]
|
||||||
|
|
Loading…
Reference in New Issue