Need documentation on constructor for SSD1306 library


#1

The documentation does not include the constructor.
The example doesn’t explain the arguments.
For my SSD1306 device I seem to need to change the setup, as the example code reboots my device.

ssd = ssd1306.SSD1306(SPI0,D17,D16,D6)

#2

Guru Meditation Error: Core 0 panic’ed (IllegalInstruction)
. Exception was unhandled.
Register dump:
PC : 0x40115543 PS : 0x00060b30 A0 : 0x801155e0 A1 : 0x3ffdc290
A2 : 0x3ffc8574 A3 : 0x00000356 A4 : 0x00000002 A5 : 0x000006ad
A6 : 0x00000001 A7 : 0x80121bfd A8 : 0x00080203 A9 : 0x3ffdc250
A10 : 0x3ffc8584 A11 : 0x000006ad A12 : 0x00000028 A13 : 0x00000040
A14 : 0x00000000 A15 : 0x00000000 SAR : 0x00000037 EXCCAUSE: 0x00000000
EXCVADDR: 0x00000000 LBEG : 0x4000c46c LEND : 0x4000c477 LCOUNT : 0x00000000
Backtrace: 0x40115543:0x3ffdc290 0x401155dd:0x3ffdc2b0 0x4010b7a5:0x3ffdc2d0 0x40108071:0x3ffdc330 0x40108086:0x3ffdc350 0x400d1038:0x3ffdc370
Rebooting…

Is what I get using the example. I assume it’s because my OLED is not configured the same as the example.

I do know it is a 1306, and others have used this board with the Arduino IDE and MicroPython.

As stated in my original post, there are no docs for the constructor as called in the examples.

Here is the code, in a try block so the unhandled exception must be in the undocumented library method. I can’t even find the source code so I can reengineer it to get it to work.


#3

Further digging around shows the issue is the Zerynth Solomon driver only supports SPI, whereas my board has it connected via i2c.
Have to check with the boss on what to do.
Probably change platforms.


#4

Hi @jimmyhoughjr,

thank you for signalling the documentation bug. Unfortunately at the moment only SPI interface is supported to connect to that chip.