Compiling Error

Hello All,

I am trying to use an adafruit graphics test example and when I try to compile it I get the following error:

Arduino: 1.8.9 (Windows Store (Windows 10), Board: "Arduino/Genuino Uno"

C:\Users\XXXXX\Documents\Arduino\libraries\Adafruit_ILI9341\Adafruit_ILI9341.cpp: In member function 'uint8_t Adafruit_ILI9341::readcommand8(uint8_t, uint8_t)':

C:\Users\XXXXX\Documents\Arduino\libraries\Adafruit_ILI9341\Adafruit_ILI9341.cpp:296:10: error: 'readcommand8' is not a member of 'Adafruit_SPITFT'

return Adafruit_SPITFT::readcommand8(commandByte);


exit status 1
Error compiling for board Arduino/Genuino Uno.

If you have any clues or solutions I would greatly appreciate it.

Thank you

Try this:

  • Delete C:\Users\XXXXX\Documents\Arduino\libraries\Adafruit_ILI9341. Please be very careful when deleting files from your computer. When in doubt, back up!
  • (In the Arduino IDE) Sketch > Include Library > Manage Libraries...
  • Wait for the download to finish.
  • In the "Filter your search..." field, type "adafruit ili9341".
  • From the search results, click on "Adafruit ILI9341 by Adafruit".
  • Click the "Install" button.
  • Wait for installation to finish.
  • Click the "Close" button.

Now that you have installed a fresh copy of the Adafruit ILI9341 library, try compiling the sketch again. Hopefully it will not have an error this time.