kopia lustrzana https://github.com/peterhinch/micropython-nano-gui
Drivers: remove misleading code comment.
rodzic
1a35c04207
commit
4d0c1c4dd1
|
@ -59,7 +59,6 @@ class ST7735R(framebuf.FrameBuffer):
|
|||
self.height = height # Required by Writer class
|
||||
self.width = width
|
||||
self._spi_init = init_spi
|
||||
# Save color mode for use by writer_gui (blit)
|
||||
mode = framebuf.GS8 # Use 8bit greyscale for 8 bit color.
|
||||
gc.collect()
|
||||
buf = bytearray(height * width)
|
||||
|
|
|
@ -57,7 +57,6 @@ class ST7735R(framebuf.FrameBuffer):
|
|||
self.height = height # Required by Writer class
|
||||
self.width = width
|
||||
self._spi_init = init_spi
|
||||
# Save color mode for use by writer_gui (blit)
|
||||
mode = framebuf.GS8 # Use 8bit greyscale for 8 bit color.
|
||||
gc.collect()
|
||||
buf = bytearray(self.height * self.width)
|
||||
|
|
|
@ -60,7 +60,6 @@ class ST7735R(framebuf.FrameBuffer):
|
|||
self.height = height # Required by Writer class
|
||||
self.width = width
|
||||
self._spi_init = init_spi
|
||||
# Save color mode for use by writer_gui (blit)
|
||||
mode = framebuf.GS4_HMSB # Use 4bit greyscale.
|
||||
gc.collect()
|
||||
buf = bytearray(self.height * self.width // 2)
|
||||
|
|
|
@ -60,7 +60,6 @@ class ST7735R(framebuf.FrameBuffer):
|
|||
self.height = height # Required by Writer class
|
||||
self.width = width
|
||||
self._spi_init = init_spi
|
||||
# Save color mode for use by writer_gui (blit)
|
||||
mode = framebuf.GS4_HMSB # Use 4bit greyscale.
|
||||
gc.collect()
|
||||
buf = bytearray(height * width // 2)
|
||||
|
|
Ładowanie…
Reference in New Issue