SSD1306 woes (continued)

Thread Starter

Torbek

Joined Apr 19, 2019
83
Appreciate the help so far, but thought it would be better that I publish the full code so folks can better see what is going on...

Would anyone be kind enough to look at the code and help me determine why making certain changes that appear not to be directly affecting the display operation results in a blank display? e.g.
Line 85 -

//bool displayBeginReturn = display.begin(SSD1306_SWITCHCAPVCC, 0x3C);

with related lines at 166

https://wokwi.com/projects/428314380703868929


Or replacing the code at line 342 with 301??

Either of these changes (including other small things like printing to serial port) result in a blank display! Seems almost like a memory issue, but I cannot determine where is it coming from!
 

nsaspook

Joined Aug 27, 2009
16,252
Appreciate the help so far, but thought it would be better that I publish the full code so folks can better see what is going on...

Would anyone be kind enough to look at the code and help me determine why making certain changes that appear not to be directly affecting the display operation results in a blank display? e.g.
Line 85 -

//bool displayBeginReturn = display.begin(SSD1306_SWITCHCAPVCC, 0x3C);

with related lines at 166

https://wokwi.com/projects/428314380703868929


Or replacing the code at line 342 with 301??

Either of these changes (including other small things like printing to serial port) result in a blank display! Seems almost like a memory issue, but I cannot determine where is it coming from!
[rant mode on]
Now you understand why most professional systems don't use the The Arduino environment for products. I've found the quality of code, drivers and documentation to be horrible. When people are just swapping code libraries with little understanding of the mess that's in them, this sort of behaviors are common.
[rant mode off]

Hopefully someone with your Arduino environment display driver library code and setup will help you.
 

Thread Starter

Torbek

Joined Apr 19, 2019
83
[rant mode on]
Now you understand why most professional systems don't use the The Arduino environment for products. I've found the quality of code, drivers and documentation to be horrible. When people are just swapping code libraries with little understanding of the mess that's in them, this sort of behaviors are common.
[rant mode off]

Hopefully someone with your Arduino environment display driver library code and setup will help you.
hmm I suspected this... So I have to consider making my own custom code for devices that is more specific and just does what I want?
 

nsaspook

Joined Aug 27, 2009
16,252
hmm I suspected this... So I have to consider making my own custom code for devices that is more specific and just does what I want?
You could dig into the code and see what's wrong. It does work, so you need to bisect the small changes you want, then track down why those changes don't work. A first thing would be to find the source for the device driver and recommended sequences for making it work correctly.
 
Top