mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-24 23:24:01 -06:00
build: Cleanup whitespace errors
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
e11851276d
commit
efb27f095c
5 changed files with 13 additions and 13 deletions
|
@ -33,7 +33,7 @@ class UC1701:
|
|||
self.mcu.add_config_object(self)
|
||||
self.glyph_buffer = []
|
||||
self.spi_xfer_cmd = self.set_pin_cmd = None
|
||||
self.vram = ([bytearray(128) for i in range(8)],
|
||||
self.vram = ([bytearray(128) for i in range(8)],
|
||||
[bytearray('~'*128) for i in range(8)])
|
||||
def build_config(self):
|
||||
self.mcu.add_config_cmd(
|
||||
|
@ -68,7 +68,7 @@ class UC1701:
|
|||
0x81, # Set Electronic Volume
|
||||
0x28, # Electronic volume value (40)
|
||||
0xAC, # Set static indicator off
|
||||
0x00, # NOP
|
||||
0x00, # NOP
|
||||
0xA6, # Disable Inverse
|
||||
0xAF] # Set display enable
|
||||
self.send(init_cmds)
|
||||
|
@ -122,7 +122,7 @@ class UC1701:
|
|||
self.glyph_buffer.append((glyph_id, data))
|
||||
self.glyph_buffer.sort(key=lambda x: x[0])
|
||||
def write_glyph(self, x, y, glyph_id):
|
||||
pix_x = x*8
|
||||
pix_x = x*8
|
||||
pix_y = y*16
|
||||
data = self.glyph_buffer[glyph_id][1]
|
||||
for bits in data:
|
||||
|
@ -171,4 +171,4 @@ class UC1701:
|
|||
def clear(self):
|
||||
zeros = bytearray(128)
|
||||
for page in self.vram[self.CURRENT_BUF]:
|
||||
page[:] = zeros
|
||||
page[:] = zeros
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue