Skip to content

Commit

Permalink
Issue pimoroni#22 - Remove debug print statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
lynniemagoo committed Mar 17, 2022
1 parent 99e4409 commit 3b68b77
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions library/ST7735/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,18 +281,14 @@ def _init(self):
self.data(0x0E)

if self._invert:
print("ST7735_INVON")
self.command(ST7735_INVON) # Invert display
else:
print("ST7735_INVOFF")
self.command(ST7735_INVOFF) # Don't invert display

self.command(ST7735_MADCTL) # Memory access control (directions)
if self._bgr:
print("MADCTL 0xC8")
self.data(0xC8) # row addr/col addr, bottom to top refresh; Set D3 RGB Bit to 1 for format BGR
else:
print("MADCTL 0xC0")
self.data(0xC0) # row addr/col addr, bottom to top refresh; Set D3 RGB Bit to 0 for format RGB

self.command(ST7735_COLMOD) # set color mode
Expand Down

0 comments on commit 3b68b77

Please sign in to comment.