I am currently trying to control an IL9341 LCD Display using my Arduino Micro.
This works fine when I use the SWSPI mode like so:
Ucglib_ILI9341_18x240x320_SWSPI screen(13, 11, 6, 5, 4);
However, that is horribly slow. One screen fill takes ~3 seconds
So I tried to use Hardware SPI to increase performance and used the following code:
Ucglib_ILI9341_18x240x320_HWSPI screen(6, 5, 4);
No matter what I do, i can only get a white screen. I've double-checked that everything is connected correctly, that the data line is connected to the MOSI pin, and the clock line to the SCK pin of the Micro according to the pinout on arduino.cc.
For conversion from 5V->3V I use a resistor voltage divider with 5.6kOhm and 2.7kOhm. That thing works for SWSPI so I don't think it's the problem
Unfortunately, I do not own an oscilloscope but with my multimeter I could determine that the Clock SPI pin was always Low (0V) and the MOSI pin always HIGH (5V). No change whatsoever. I don't know if that is due to the inaccuracy of my meter or if the hardware SPI of my Arduino Micro just does not work.
I have even tried using different versions of the Ucglib library, without success.
I've been trying every solution that I find for hours now but I can't get it to work.
Any ideas? I am new to this so maybe I am missing something obvious here.
Thank you very much in advance!