Skip to content

Commit cc4e505

Browse files
committed
fix longline and docstring
1 parent 864bec4 commit cc4e505

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

adafruit_framebuf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
`adafruit_framebuf`
2424
====================================================
2525
26-
CircuitPython frambuf module, based on the Python frambuf module.
26+
CircuitPython pure-python framebuf module, based on the micropython framebuf module.
2727
2828
* Author(s): Kattni Rembor, Tony DiCola, original file created by Damien P. George
2929
@@ -77,7 +77,8 @@ def fill_rect(framebuf, x, y, width, height, color):
7777
offset = 7 - _x & 0x07
7878
for _y in range(y, y+height):
7979
index = (_y * framebuf.stride + _x) // 8
80-
framebuf.buf[index] = (framebuf.buf[index] & ~(0x01 << offset)) | ((color != 0) << offset)
80+
framebuf.buf[index] = (framebuf.buf[index] & ~(0x01 << offset)) \
81+
| ((color != 0) << offset)
8182

8283
class MVLSBFormat:
8384
"""MVLSBFormat"""

0 commit comments

Comments
 (0)