I have modified an arduino project (using an arduino Nano) in order to use an I2C SSD1306 Oled screen as a replacement of an old LCD 20x4 I2C.
Source project : Trimix-analyzer/trimix-analyzer.ino at master · captainigloo/Trimix-analyzer · GitHub
Schematic : https://raw.githubusercontent.com/captainigloo/Trimix-analyzer/master/images/fritzing.png
All the wiring is correct, and I have been able to run the code on an ESP32 without any problem.
Then I tried to swap the ESP32 with the arduino nano and uploaded the code ==> I obtain the "SSD1306 allocation failed" message
I used the SSD1306 example project, modified to display some of the informations I need in my project, without changing any wiring or hardware part, and keeping the same I2C address ==> The display is working !
Then I tried a copy/paste of the includes and the setup(), in order to eliminate a potential error ==> the same, the screen is not working and still "allocation failed"...
I tried to comment some parts of the main project (the ADS1115 references, for example) ==> screen still not working...
I can't find a way to have it working...
Can someone help me ?
PS: The "main" project that is not working is "Analyseur_trimix_martin.ino"
The "test" project is "ssd1306_......test_ecran.ino"
Both are uploaded with this post
I use the latest version of all the librairies included.