Page 1 of 1

The SSD1306 library doesn't seem to ship in the ESP32 build

Posted: Fri Mar 01, 2019 8:52 am
by IainColledge
When using an ESP8266 one can:

import ssd1306

And the library is found, when doing the same on an ESP32 it isn't and you have to manually copy it up first.

Is this how it's meant to be?

Re: The SSD1306 library doesn't seem to ship in the ESP32 build

Posted: Fri Mar 01, 2019 4:29 pm
by fstengel
Just to be on the safe side, what does

Code: Select all

help('modules')
answer? It gives you a list of the modules that are installed with the firmware.

Re: The SSD1306 library doesn't seem to ship in the ESP32 build

Posted: Fri Mar 01, 2019 5:58 pm
by danielm
You need to place the module into this folder during build time:
https://github.com/micropython/micropyt ... 32/modules

Re: The SSD1306 library doesn't seem to ship in the ESP32 build

Posted: Fri Mar 01, 2019 8:06 pm
by IainColledge
Thanks but this is the build offered as a download, just noticed the ESP8266 build included it, the ESP32 does not.

Intention?

Re: The SSD1306 library doesn't seem to ship in the ESP32 build

Posted: Fri Mar 01, 2019 8:21 pm
by Roberthh
Yes, you are right. It is in the standard build for ESP8266, but not in the daily builds for the ESP8266, and not in the ESP32. If you want to use it there, just upload it to the ESP32. The driver is at: https://github.com/micropython/micropyt ... ssd1306.py

Re: The SSD1306 library doesn't seem to ship in the ESP32 build

Posted: Sat Mar 02, 2019 11:12 am
by IainColledge
Thanks for that and I do, might be worth a mention on the builds page as without knowing newcomers would think something is broken when following the documentation.