micropython/micropython-esp32

import ssd1306 syntax

rdagger opened this issue · 1 comments

It looks like the daily firmware build doesn't include:
micropython-esp32/drivers/display/ssd1306.py
Or am I using the wrong import syntax? import ssd1306

The library works if I copy ssd1306.py to the ESP32.

You are correct: ssd1306.py is not included in the builds. Not everyone needs this library so it's kept out of the main firmware. You can easily copy it to the filesystem (or even a pre-compiled version using mpy-cross) when needed.