Hello there,
I am quite experienced with c++, Bash, Python, and R
I have a 1.8" TFT display with an SD card and I am using the Adafruit_ST7735 library. I can get the example (spitftbitmap) to work with my own bitmaps if I use a literal in the bmpDraw() function.
i.e bmpDraw("hey.bmp", 0 ,0) works just fine.
I can't however, get that same function to loop through a char array. for example...
char my_imgs[] = {"hey.bmp", "whats.bmp", "up.bmp"} // char and const char behave the same
for (int x = 0; x <= 2; x++) {
bmpDraw(my_imgs[x], 0, 0)
delay(5000);
}
Fails with the serial monitor telling me that there is no file called 'hey.bmp'
"Initialize SD card....ok!
loading img 'hey.bmp'
File not found. "
I also notice that the serial monitor appears to not be printing the contents of the root directory on the sd card when I attempt the loop. That is, it prints the contents of the sd card when I use the literal/const declaration.
All that I get is a blue screen.
here's the kicker
If I put the literal deceleration after the loop, the serial monitor says that it has loaded the image, but the screen simply turns completely white.
Any ideas or leads?
I have done much searching without turning anything up...