grafmar / Arduino-Reflow-Oven

Control unit using Arduino to modify pizza oven to a reflow oven
MIT License
21 stars 2 forks source link

i cannot upload the code #5

Closed LaurensMarkwat closed 3 years ago

LaurensMarkwat commented 3 years ago

Dear Grafmar,

I am verry interrested in your project and would like to make it myself but when I want to upload the code to the arduino it does not work so could you help me?

kind regards,

Laurens Markwat

grafmar commented 3 years ago

Hi Laurens, What kind of display do you use? in ReflowOven.h you can specify (line 9 and 10) one of two types:

Best is if you can test your Display with a Library-Example and extend the ReflowOven.h file with the used pins and Touch parameters if needed.

kind regards, Marco Graf

LaurensMarkwat commented 3 years ago

Dear Marco Graf,

Furst of alle thank you for your fast response. I am using the second screen. I was trying to upload a library example but when I try that my arduino IDE gives a error code. The error code is Textsize Was not declared in this scope. Do know what the problem could be. And I get the same error when I try to upload the reflow oven code.

kind regards,

Laurens Markwat

grafmar commented 3 years ago

Hi,

Okay, that was the hint needed ;-) in "Adafruit GFX Library V1.5.0" there was a variable textsize. In the deriving classes SWTFT or TftSpfd5408 respectively this variable is initialized. Adafruit changed this to textsize_x and textsize_y. So, get this working. Install Adafruit GFX Library V1.5.0 (this can be selected in the Library manager: search GFX, and in Adafruit GFX Library search in "Select version". Or you can update your driver-library by replacing in "TftSpfd5408.cpp" file the line textsize = 1; in

textsize_x  = 1;
textsize_y  = 1;

kind regards, Marco Graf

LaurensMarkwat commented 3 years ago

Thank you very much for your help. I have tried your suggestion and it is working. If I have further questions during the build I will contact you again. Thank you very much