Arduino_GFX
Arduino_GFX copied to clipboard
ILI9488 with Arduino UNO R3
I'm new to programming with an Arduino. I'm using a Arduino UNO R3 and want to connect a ILI9488 touch screen to it. Here is how I wired it:
- VCC: 5V
- GND: GND
- CS: 9
- RESET: 7
- D/C: 8
- SDI: 11
- SCK: 13
- LED: 5V
- SDO(MISO): 12
I just want to fill the screen blue for now. I use the same wiring in the Wokwi Simulator with a ILI9341 and it works fine. But with the ILI9488 I only the the nearly white screen with only these two stripes in the middle of the screen:
Here is my very simple code:
Arduino_DataBus *bus = create_default_Arduino_DataBus();
Arduino_ILI9488 *gfx = new Arduino_ILI9488(bus, DF_GFX_RST, 0 /* rotation */, false /* IPS */);
gfx->begin();
gfx->fillScreen(RGB565_BLUE);
If it helps here is also the back of the screen:
If you need anything to be able to help me better, please tell me what you need. Thank you in advance.
if create_default_Arduino_DataBus() not work, you can declare databus yourself
I've tried the following but still no success. Am I using the right DataBus?
Arduino_DataBus *bus = new Arduino_HWSPI(8 /* DC */, 9 /* CS */);
if you use SPI, you need to use Arduino_ILI9488_18bit
I now have tried using the Arduino_ILI9488_18bit and the display gets completely blue as soon as it resets. Once it starts again it's just as before with those two stripes and just a little bit more blue. This is my code now:
Arduino_DataBus *bus = new Arduino_HWSPI(8 /* DC */, 9 /* CS */);
Arduino_GFX *gfx = new Arduino_ILI9488_18bit(bus, 7 /* RST */, 1 /* rotation */, false /* IPS */);
gfx->begin();
gfx->fillScreen(BLUE);
a good forward
a good forward
Thank you for your help so far. Do you have an idea how to fix this issue?
check wire contact one by one