This is what I had ... char PNG_FILENAME[22] = "/TG2.png";
This is what I get
Code:
In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/Print.h:38:0,
from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/Stream.h:24,
from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/HardwareSerial.h:115,
from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/WProgram.h:46,
from C:\Users\steve\AppData\Local\Temp\arduino_build_771662\pch\Arduino.h:6:
Gauges_v14: In function 'void* myOpen(const char*, int32_t*)':
Gauges_v14:262: error: expected ')' before 'PNG_FILENAME'
Serial.println(F("ERROR: Failed to open " PNG_FILENAME " file for reading"));
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/WString.h:45:58: note: in definition of macro 'F'
#define F(string_literal) ((const __FlashStringHelper *)(string_literal))
^
Gauges_v14:262: error: expected ')' before ';' token
Serial.println(F("ERROR: Failed to open " PNG_FILENAME " file for reading"));
^
Gauges_v14:262: error: expected ')' before ';' token
In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/Print.h:38:0,
from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/Stream.h:24,
from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/HardwareSerial.h:115,
from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/WProgram.h:46,
from C:\Users\steve\AppData\Local\Temp\arduino_build_771662\pch\Arduino.h:6:
Gauges_v14:263: error: expected ')' before 'PNG_FILENAME'
gfx->println(F("ERROR: Failed to open " PNG_FILENAME " file for reading"));
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/WString.h:45:58: note: in definition of macro 'F'
#define F(string_literal) ((const __FlashStringHelper *)(string_literal))
^
Gauges_v14:263: error: expected ')' before ';' token
gfx->println(F("ERROR: Failed to open " PNG_FILENAME " file for reading"));
^
Gauges_v14:263: error: expected ')' before ';' token
Multiple libraries were found for "SD.h"
Used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SD
Not used: C:\Program Files (x86)\Arduino\libraries\SD
Multiple libraries were found for "SdFat.h"
Used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SdFat
Not used: C:\Users\steve\Documents\Arduino\libraries\SdFat_-_Adafruit_Fork
Not used: C:\Users\steve\Documents\Arduino\libraries\SdFat-master
Multiple libraries were found for "Adafruit_NeoPixel.h"
Used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Adafruit_NeoPixel
Not used: C:\Users\steve\Documents\Arduino\libraries\Adafruit_NeoPixel-master
expected ')' before 'PNG_FILENAME'
Got some new duplicate library errors now. Doing my head in this!