Hello,
I'm trying to test the 320x480 TFT screen HX8357 on my Arduino Due and tried to compile the "graphicstest" example in the HX8357 library and the Arduino IDE gives me the error message: In file included from C:\Users\David Anderson\AppData\Local\Temp\.arduinoIDE-unsaved2022023-15836-i1t4k9.sb7s8\graphicstest\graphicstest.ino:18:0:
C:\Users\David Anderson\Documents\Arduino\libraries\Adafruit_HX8357_Library/Adafruit_HX8357.h:135:31: error: expected ')' before 'busWidth'
Adafruit_HX8357(tftBusWidth busWidth, int8_t d0, int8_t wr, int8_t dc,
I checked the code and the parenthesis is there but the IDE apparently doesn't think so. I've tried various versions of the library but get the same message. Can anyone tell me what I'm doing wrong?
320x480 TFT screen HX8357
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- XRAD
- Posts: 753
- Joined: Sat Nov 19, 2016 3:28 pm
Re: 320x480 TFT screen HX8357
I have no issues running this TFT with arduino on teensy 3.2.
delete your current HX8375 files in documents-> arduino-> libraries and add this adafruit lib (just download the zip file, double click it, and drag the opened file to -> library) as a replacement....could be a corrupt library..and be sure you have the newest arduino IDE
https://github.com/adafruit/Adafruit_HX8357_Library
close current IDE and reopen and check the examples and load the one for BREAKOUT...make sure pins match
standard hardware pins do not have to be defined separately ,,,they are automatically configured when you create the tft object
11 miso
12 mosi
13 sck
and the other 2 or 3 pins listed on the example...
and PS: I never name my computers with full names.....
delete your current HX8375 files in documents-> arduino-> libraries and add this adafruit lib (just download the zip file, double click it, and drag the opened file to -> library) as a replacement....could be a corrupt library..and be sure you have the newest arduino IDE
https://github.com/adafruit/Adafruit_HX8357_Library
close current IDE and reopen and check the examples and load the one for BREAKOUT...make sure pins match
standard hardware pins do not have to be defined separately ,,,they are automatically configured when you create the tft object
11 miso
12 mosi
13 sck
and the other 2 or 3 pins listed on the example...
and PS: I never name my computers with full names.....
- danderson1951
- Posts: 3
- Joined: Sat Jan 22, 2022 3:57 pm
Re: 320x480 TFT screen HX8357
I tried replacing the library and restarted everything but when I try to verify the code I still get the same error message. I didn't mention before but I also get this error message:
\Arduino\libraries\Adafruit_HX8357_Library-master\examples\graphicstest\graphicstest.ino:40:19: error: 'class Adafruit_HX8357' has no member named 'readcommand8'
uint8_t x = tft.readcommand8(HX8357_RDPOWMODE);
I get an error for each line of code that has the "readcommand8" .
I just can't verify any of the examples in this library. Don't understand what's wrong.
\Arduino\libraries\Adafruit_HX8357_Library-master\examples\graphicstest\graphicstest.ino:40:19: error: 'class Adafruit_HX8357' has no member named 'readcommand8'
uint8_t x = tft.readcommand8(HX8357_RDPOWMODE);
I get an error for each line of code that has the "readcommand8" .
I just can't verify any of the examples in this library. Don't understand what's wrong.
- danderson1951
- Posts: 3
- Joined: Sat Jan 22, 2022 3:57 pm
Re: 320x480 TFT screen HX8357
So, I reloaded the Adafruit_GFX library and everything ran perfectly.
Please be positive and constructive with your questions and comments.