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

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
IainColledge
Posts: 3
Joined: Fri Mar 01, 2019 8:40 am

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

Post by IainColledge » Fri Mar 01, 2019 8:52 am

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?

fstengel
Posts: 42
Joined: Tue Apr 17, 2018 4:37 pm

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

Post by fstengel » Fri Mar 01, 2019 4:29 pm

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.

danielm
Posts: 161
Joined: Mon Oct 05, 2015 12:24 pm

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

Post by danielm » Fri Mar 01, 2019 5:58 pm

You need to place the module into this folder during build time:
https://github.com/micropython/micropyt ... 32/modules

IainColledge
Posts: 3
Joined: Fri Mar 01, 2019 8:40 am

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

Post by IainColledge » Fri Mar 01, 2019 8:06 pm

Thanks but this is the build offered as a download, just noticed the ESP8266 build included it, the ESP32 does not.

Intention?

User avatar
Roberthh
Posts: 1845
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

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

Post by Roberthh » Fri Mar 01, 2019 8:21 pm

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

IainColledge
Posts: 3
Joined: Fri Mar 01, 2019 8:40 am

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

Post by IainColledge » Sat Mar 02, 2019 11:12 am

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.

Post Reply