loboris / MicroPython_ESP32_psRAM_LoBo

MicroPython for ESP32 with psRAM support
Other
831 stars 344 forks source link

drivers/display/ssd1306.py — upside_down method #309

Open stroobandt opened 5 years ago

stroobandt commented 5 years ago

The added upside_down static method causes the contents to be rendered with a 180° rotation. If a display is to be run upside down, this method must be called prior to instantiating a Writer for this display. This particular OLED command sequence was originally discussed here.