Open schnoog opened 10 months ago
if (TFT_BL > 0) { pinMode(TFT_BL, OUTPUT); digitalWrite(TFT_BL, HIGH); }
U changed your black light pin to 0 that doesn't exist. U shouldn't see even blacklight (nothing displayed but still lighten up). If u see that's because TFT_eSPI is taking care of it (and u didn't disabled it there)
don't write manually screen resolution, create variables and write them there. Code will work exactly the same but it's: easier to read, harder to mess up
const int display_x = [write your value here];
Const means that variable cannot change and will always have the same value (not always, but u will not touch code hard enough to feel that).
Sorry for the confusion. My TFT is hardwired to an Esp32s3 (for a home cockpit project) and the back light is controlled externally.
That's why I set it to 0.
In the reddit discussion I understood that Cristian hooked it up to 3.3 and didn't use the back light on/off feature.
Hi, that's my final code to our discussion https://www.reddit.com/r/arduino/comments/18dltx3/comment/kcjwlqg/?context=3