VolosR / TTGOWeatherStation

129 stars 59 forks source link

error stray, someone can help? #15

Open gianluca-tursi opened 6 months ago

gianluca-tursi commented 6 months ago

hello, thank for your work, but i receive this error:

In file included from /Users/Gianlu/Documents/Arduino/Weather/Weather.ino:1: /Users/Gianlu/Documents/Arduino/Weather/ani.h:1:1: error: stray '\357' in program int frames=10; ^ /Users/Gianlu/Documents/Arduino/Weather/ani.h:1:2: error: stray '\273' in program int frames=10; ^ /Users/Gianlu/Documents/Arduino/Weather/ani.h:1:3: error: stray '\277' in program int frames=10; ^ /Users/Gianlu/Documents/Arduino/Weather/Weather.ino: In function 'void setup()': /Users/Gianlu/Documents/Arduino/Weather/Weather.ino:59:17: error: 'TFT_BL' was not declared in this scope ledcAttachPin(TFT_BL, pwmLedChannelTFT); ^~ /Users/Gianlu/Documents/Arduino/Weather/Weather.ino:59:17: note: suggested alternative: 'TFT_BLUE' ledcAttachPin(TFT_BL, pwmLedChannelTFT); ^~ TFT_BLUE /Users/Gianlu/Documents/Arduino/Weather/Weather.ino: In function 'void loop()': /Users/Gianlu/Documents/Arduino/Weather/Weather.ino:189:30: error: 'class NTPClient' has no member named 'getFormattedDate'; did you mean 'getFormattedTime'? formattedDate = timeClient.getFormattedDate(); ^~~~ getFormattedTime

exit status 1

Compilation error: stray '\357' in program

snikitin-de commented 4 months ago

Resave the files with UTF8 encoding without BOM. That worked for me.

JuniorPolegato commented 3 months ago

Hi! You can try updates made by me at: https://github.com/JuniorPolegato/TTGOWeatherStation