Hello everyone, I recently purchased an ili9341 2.8 inch display from amazon ili9341 to test my Arduino nano rp2040. images of my wiring are shown below:
Running the Adafruit ili9341 graphic test example seems to work and display great, but when I tried to create a simple code, the display would compile and upload, but the screen would remain white. the code I created is below:
As I am relatively new to Arduino so I am not too sure why this problem is occurring. If anyone has any tips that may help that would be much appreciated
Regards, Ethan
Thank you for the reply. I have tried this and got the following error:
C:\Users\User\Pictures\diss work\examplesketch\examplesketch.ino: In function 'void setup()':
C:\Users\User\Pictures\diss work\examplesketch\examplesketch.ino:18:11: error: 'TFT_LED' was not declared in this scope
pinMode(TFT_LED, OUTPUT);
^~~~~~~
C:\Users\User\Pictures\diss work\examplesketch\examplesketch.ino:18:11: note: suggested alternative: 'TFT_CS'
pinMode(TFT_LED, OUTPUT);
^~~~~~~
TFT_CS
I tried doing what it suggested and declared only cs, dc and led pin so it looked like this:
And kept the setup the same.
The screen is still white. I'm not sure if I need the LED pin connected to an output pin on the Arduino, or to the VCC pin which itself is connected to the 3.3v pin.
Any more help would be greatly appreciated.