diff --git a/MicroPython_BUILD/components/micropython/esp32/modules/ssd1306.py b/MicroPython_BUILD/components/micropython/esp32/modules/ssd1306.py index d0f98424..e444b8b7 100644 --- a/MicroPython_BUILD/components/micropython/esp32/modules/ssd1306.py +++ b/MicroPython_BUILD/components/micropython/esp32/modules/ssd1306.py @@ -72,6 +72,10 @@ def contrast(self, contrast): def invert(self, invert): self.write_cmd(SET_NORM_INV | (invert & 1)) + + def upside_down(self): + self.write_cmd(SET_SEG_REMAP) + self.write_cmd(SET_COM_OUT_DIR) def show(self): x0 = 0