OLED2864 is a module based on SSD1306 with I2C interface. Display initialization requires a Reset PIN to be wired and toggled, otherwise it won't react to I2C communication. Once this step is done it interfaces the same way as a standard SSD1306.
#RST
This pin is reset signal input. When the pin is pulled LOW, initialization of the chip is executed.
Keep this pin HIGH (i.e. connect to VDD ) during normal operation.
Seems that for the above mentioned OLED module (unlike similar I2C modules without Reset pin) such reset is mandatory. Therefore I think it would be nice ssd1306 module contains an optional parameter (reset_pin) which - if set - would perform such initialization when display object is being created.
OLED2864 is a module based on SSD1306 with I2C interface. Display initialization requires a Reset PIN to be wired and toggled, otherwise it won't react to I2C communication. Once this step is done it interfaces the same way as a standard SSD1306.
Here's a sample code:
Output:
[]
(empty list - nothing was found on I2C bus).Attempt to initialize display via
display = ssd1306.SSD1306_I2C(128, 64, i2c)
results inOSError: [Errno 5] EIO
.Working code (inspired by Adafruit SSD1306 library for Arduino) with Reset pin wired to GP2:
Output:
[60]
, display shows text.This is what datasheet says about reset pin:
Seems that for the above mentioned OLED module (unlike similar I2C modules without Reset pin) such reset is mandatory. Therefore I think it would be nice
ssd1306
module contains an optional parameter (reset_pin
) which - if set - would perform such initialization when display object is being created.Hardware: https://wiki.dfrobot.com/OLED_2864_display_module__SKUTOY0007 Datasheet: https://image.dfrobot.com/image/data/TOY0007/SSD1306.pdf