micropython / micropython-esp32

Old port of MicroPython to the ESP32 -- new port is at https://github.com/micropython/micropython
MIT License
673 stars 216 forks source link

import ssd1306 syntax #207

Closed rdagger closed 6 years ago

rdagger commented 6 years ago

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.

dpgeorge commented 6 years ago

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.