Hello everybody,
I have a very strange problem since I received my new PCB.
I am going to be clear as much as I can.
My project start and frist it initiate the SD card, then the OLD LCD screen. When it start reading a filed, he can not find it while the files really exist.
I inactivate the OLED and the file can be read. I activate the OLED and the file can not be read.
I also have a function which listthe content of my SD crad.
When I use that function, befor the of the OLED initialized, it list the content of my SD crad. When I use that function after my OLED initiation, it can NOT list the content of my SD card.
Then I debug by calling my function into different place of the OLED initialisation.
This appen at the begining of the setup() function but after Serial.begin(9600) and Wire.begin)
First I observed that when
Si.listingFile(NULL);
delay(200);
Si.listingFile(NULL);
listingFile(NULL) list the conent before and delay, but nor after a delay!!!!!!
Then I remove temprarely my delay, and I observed the same issue with a delay of delay(500).
I removed the delay(500) and the problem was solved.
As I may said befoee, if I unactive the OLED, I do not exepriement that issue.
So now, I may need some advise from you:
- When OLED is active why a delay() give issues to list the content of my SD card?
- Why when OLED is unactive, I do not experiment that issue?
- And finally, is a SD crad issue? a OLED issue? a timing issue????
What is really more anoying, the same code works on the previous version of my PCD!!!!
If you can help ,e to target my issuer, that would be great! And feel free to ask additionnal question as exemple of code (Ido not know what can I provide for now)
Many thank!
Pierre
Is OLED problem? Is a SD card problem?