Heltec LoRa OLED SSD1306 code
Posted: Mon Jun 30, 2025 7:56 am
Dear all,
I am stuck and cry for help.
I am using the ESP-IDF master version. I use it for programming a Heltec LoRa32 board with a 0.96" 128 x 64 OLED driven by a SSD1306 using I2C.
The display shows nothing. I have tested a couple of initialization sequences, I have tried 100kHz and 400 kHz clock, I have included the i2c_master_probe() successfully, the call to i2c_master_bus_add_device returns OK and so does all calls to i2c_master_transmit(). I have inserted 100ms delay between commands.
Heltec offers a test of the OLED, but it is in binary and ready to install. I have done it, and it works. Hence the hardware is OK.
Please, if anyone has code developed on ESP-IDF and proven to work on a SSD1306, please leave me a copy. Code limited to demonstrating the OLED SSD1306 is most welcome.
I attach the code I use.
Regards,
Jorgen
I am stuck and cry for help.
I am using the ESP-IDF master version. I use it for programming a Heltec LoRa32 board with a 0.96" 128 x 64 OLED driven by a SSD1306 using I2C.
The display shows nothing. I have tested a couple of initialization sequences, I have tried 100kHz and 400 kHz clock, I have included the i2c_master_probe() successfully, the call to i2c_master_bus_add_device returns OK and so does all calls to i2c_master_transmit(). I have inserted 100ms delay between commands.
Heltec offers a test of the OLED, but it is in binary and ready to install. I have done it, and it works. Hence the hardware is OK.
Please, if anyone has code developed on ESP-IDF and proven to work on a SSD1306, please leave me a copy. Code limited to demonstrating the OLED SSD1306 is most welcome.
I attach the code I use.
Regards,
Jorgen