bitbank2 / ss_oled

Simple and small library to control 1-bpp OLED displays (Linux + Arduino)
GNU General Public License v3.0
190 stars 34 forks source link

[Feature request] Support RST line #14

Closed cyberman54 closed 5 years ago

cyberman54 commented 5 years ago

Can we have RST line support for SSD1306 in the library?

bitbank2 commented 5 years ago

It is already supported. See https://github.com/bitbank2/ss_oled/blob/master/src/ss_oled.cpp line 691. If this is not sufficient, can you explain better what you're looking for?

cyberman54 commented 5 years ago

...but only for SPI interface, not for I2C: int oledInit(int iType, int bFlip, int bInvert, int sda, int scl, int32_t iSpeed)

bitbank2 commented 5 years ago

The common SSD1306 modules available to the public don't expose the reset line when they come configured for I2C. It's not exposed because it's not needed. Can you show me a situation where the reset line is needed on a SSD1306 configured for I2C?

cyberman54 commented 5 years ago

On Heltec ESP32 Wifi Lora32 boards, v1 and v2, the SSD1306 is I2C driven AND the RST line is connected. This is useful to clear the display.

cyberman54 commented 5 years ago

Look here: https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/tree/master/SchematicDiagram/WiFi_LoRa_32(V2)

bitbank2 commented 5 years ago

One vendor selling one board which has the reset line exposed is not a compelling argument. If you want to add that functionality, then I suggestion you fork my library and add it. Otherwise it doesn't add any value to the vast majority of people using it.