So I think this is not a new topic. For some reasons I can’t explain I’m getting some kind of “interferences” (lines or weird sections of display) on my device making it unreadable mostly when the SDcard is accessed, and I’m pretty certain it comes from some incompatibilities between the SdFat and the SSD1351 libs.
I can’t post example of code, that would be far too complex (project is huge), but I’m fairly certain my code is not doing anything wrong, and I suspect more some timing issues.
From my tests I noticed:
- the order I instantiate my Display and the SD card is important (otherwise one or the other fails)
- using hardware SPI for one, the other or both doesn’t work (mostly either one or both device fail)
- using software SPI (all pins passed when instantiating the SSD1351, using SdFatSoftSpi for the Sd card) works on a device with just the display AND the sdcard, but I get the interferences when other actions occur on peripheral components (e.g. RS comms). Note that I already obtained the same interferences WITHOUT the other components (basically, electron, OLED and SdCard), so I can’t conclude the other components cause them.
Mostly what I’d like to know is, if someone else noticed these, and if they found a way to remove them by changing any settings in the libs, or adding delays, etc…
Thanks in advance,