hello all, i am trying to use the adafruit gfx library but from what im understanding its not working like it should. i am trying to call out funvction but my IDE just says it wasnt decleared in this scope. here is my code.
Are you sure they say that? It seems like you have inaccurately paraphrased them. Success with Arduino requires attention to precision, and the same goes for getting effective help here on the Arduino forum.
init() what? Is that how the library examples initialize the screen and call functions?
I see no loop() function so the code has no chance to compile.
Post the whole code.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.
Please include the entire error message. It is easy to do. There is a button (lower right of the IDE window) called "copy error message". Copy the error and paste into a post in code tags. Paraphrasing the error message leaves out important information.
yes i know there is no loop functiojn its still a work ijn progress, this is the error i got.
Arduino: 1.8.16 (Windows Store 18.104.22.168) (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
C:\Users\max10\OneDrive\Desktop\Baja Daq files\Daq_Code\DAQ_1\DAQ_1.ino: In function 'void setup()':
DAQ_1:1277:1: error: 'setRotation' was not declared in this scope
DAQ_1:1278:2: error: 'fillScreen' was not declared in this scope
DAQ_1:1279:2: error: 'drawBitmap' was not declared in this scope
drawBitmap(0, 0, epd_bitmap_Zips, 480, 320, 0xFEA0);
DAQ_1:1282:3: error: 'setTextSize' was not declared in this scope
DAQ_1:1283:3: error: 'setTextFont' was not declared in this scope
DAQ_1:1284:1: error: 'setTextColor' was not declared in this scope
DAQ_1:1285:2: error: 'setCursor' was not declared in this scope
setCursor (190, 60);
C:\Users\max10\OneDrive\Desktop\Baja Daq files\Daq_Code\DAQ_1\DAQ_1.ino:1285:2: note: suggested alternative: 'strerror'
setCursor (190, 60);
DAQ_1:1288:2: error: 'print' was not declared in this scope
C:\Users\max10\OneDrive\Desktop\Baja Daq files\Daq_Code\DAQ_1\DAQ_1.ino:1288:2: note: suggested alternative: 'Print'
DAQ_1:1293:3: error: expected primary-expression before '.' token
.setCursor (135, 235);
exit status 1
'setRotation' was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
You see that your functions are all missing the tft (or what ever the name is of your display instance).
Now the above may not be for your display, but the syntax is right. I suggest that you work with some library examples from the libraries that you are using to see how the library works before adding any other functionality to the code. Get your display to work, by itself, then add other stuff.
ok yes thank you for pointing that out. i didn't realize it said arduino and not adafruit. that was the issue. i had removed the tft because i thought that could have been the issue. thank you for pointing that out to me. i probably would have stared at this damn code for another 4 hours before i caught that.