Installed arduino 2.04 on new pc.win 10 pro. added all the libraries i need for my sketch. Specifically, Adafruit HX8357 v 1.1.15 Teensy 4 connected to this display https://www.adafruit.com/?q=hxd8357&sort=BestMatch
started writing code.
#include "Adafruit_HX8357.h"
#include <Bounce.h>
#define TFT_CS 10
#define TFT_DC 9
#define TFT_RST 8 6
Adafruit_HX8357 tft = Adafruit_HX8357 (TFT_CS, TFT_DC, TFT_RST);
did a verify/compile on this. got this error:
C:\Users\Stefan\AppData\Local\Temp\.arduinoIDE-unsaved202331-9772-phra3o.j87e8\sketch_apr1a\sketch_apr1a.ino:7:39: error: expected primary-expression before '(' token
7 | Adafruit_HX8357 tft = Adafruit_HX8357 (TFT_CS, TFT_DC, TFT_RST);
| ^
C:\Users\Stefan\AppData\Local\Temp\.arduinoIDE-unsaved202331-9772-phra3o.j87e8\sketch_apr1a\sketch_apr1a.ino:6:19: error: expected ')' before numeric constant
6 | #define TFT_RST 8 6
| ^
C:\Users\Stefan\AppData\Local\Temp\.arduinoIDE-unsaved202331-9772-phra3o.j87e8\sketch_apr1a\sketch_apr1a.ino:7:56: note: in expansion of macro 'TFT_RST'
7 | Adafruit_HX8357 tft = Adafruit_HX8357 (TFT_CS, TFT_DC, TFT_RST);
| ^~~~~~~
C:\Users\Stefan\AppData\Local\Temp\.arduinoIDE-unsaved202331-9772-phra3o.j87e8\sketch_apr1a\sketch_apr1a.ino:7:39: note: to match this '('
7 | Adafruit_HX8357 tft = Adafruit_HX8357 (TFT_CS, TFT_DC, TFT_RST);
| ^
exit status 1
Compilation error: expected primary-expression before '(' token
Perhaps the syntax has changed? The same code compiled fine on previous machine with Arduino 1.89