File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -85,26 +85,26 @@ def show(self):
85
85
86
86
with self .spi_device as spi :
87
87
88
- _imageBuf = bytearray ()
88
+ image_buffer = bytearray ()
89
89
# toggle the VCOM bit
90
90
self ._buf [0 ] = _SHARPMEM_BIT_WRITECMD
91
91
if self ._vcom :
92
92
self ._buf [0 ] |= _SHARPMEM_BIT_VCOM
93
93
self ._vcom = not self ._vcom
94
- _imageBuf .extend (self ._buf )
94
+ image_buffer .extend (self ._buf )
95
95
96
96
slice_from = 0
97
97
line_len = self .width // 8
98
98
for line in range (self .height ):
99
99
self ._buf [0 ] = reverse_bit (line + 1 )
100
- _imageBuf .extend (self ._buf )
101
- _imageBuf .extend (
100
+ image_buffer .extend (self ._buf )
101
+ image_buffer .extend (
102
102
self .buffer [slice_from : slice_from + line_len ])
103
103
slice_from += line_len
104
104
self ._buf [0 ] = 0
105
- _imageBuf .extend (self ._buf )
106
- _imageBuf .extend (self ._buf )
107
- spi .write (_imageBuf )
105
+ image_buffer .extend (self ._buf )
106
+ image_buffer .extend (self ._buf )
107
+ spi .write (image_buffer )
108
108
109
109
def image (self , img ):
110
110
"""Set buffer to value of Python Imaging Library image. The image should
You can’t perform that action at this time.
0 commit comments