Hallo, da ich neu hier bin hoffe ich das ich alles richtig mache.
Ich habe ein Problem mit einem älteren code von der NeoPixel Clock bei Instructables.
[https://www.instructables.com/NeoPixel-Clock-1/]
Da ich noch wenig Erfahrung beim Coden habe, wäre ich für Hilfe sehr dankbar.
Beim kompilieren bekomme ich folgende Fehler:
C:\Users*\Documents\Arduino\NeopixelClock1\NeopixelClock1.ino: In function 'void BlynkWidgetWrite0(BlynkReq&, const BlynkParam&)':
NeopixelClock1:139:50: error: 'OFF' was not declared in this scope
139 | if (param.asInt() == 0) RTC.writeSqwPinMode(OFF); else RTC.writeSqwPinMode(SquareWave1HZ);
|
NeopixelClock1:139:83: error: 'SquareWave1HZ' was not declared in this scope; did you mean 'DS1307_SquareWave1HZ'?
139 | if (param.asInt() == 0) RTC.writeSqwPinMode(OFF); else RTC.writeSqwPinMode(SquareWave1HZ);
| ^~~~~~~~~~~~
| DS1307_SquareWave1HZ
C:\Users*\Documents\Arduino\NeopixelClock1\NeopixelClock1.ino: In function 'void BlynkWidgetWrite1(BlynkReq&, const BlynkParam&)':
NeopixelClock1:151:25: error: 'OFF' was not declared in this scope
151 | RTC.writeSqwPinMode(OFF); // set square wave output from RTC to OFF
|
C:\Users*\Documents\Arduino\NeopixelClock1\NeopixelClock1.ino: In function 'void BlynkWidgetWrite2(BlynkReq&, const BlynkParam&)':
NeopixelClock1:161:25: error: 'OFF' was not declared in this scope
161 | RTC.writeSqwPinMode(OFF); // set square wave output from RTC to OFF
| ~~
C:\Users*\Documents\Arduino\NeopixelClock1\NeopixelClock1.ino: In function 'void setup()':
NeopixelClock1:323:25: error: 'SquareWave1HZ' was not declared in this scope; did you mean 'DS1307_SquareWave1HZ'?
323 | RTC.writeSqwPinMode(SquareWave1HZ); //switch on clock..........................SquareWave1HZ
| ~~~~~~~~~
| DS1307_SquareWave1HZ
C:\Users***\Documents\Arduino\NeopixelClock1\NeopixelClock1.ino: In function 'void RunPatterns()':
NeopixelClock1:1034:25: error: 'SquareWave1HZ' was not declared in this scope; did you mean 'DS1307_SquareWave1HZ'?
1034 | RTC.writeSqwPinMode(SquareWave1HZ); //switch on clock
| ~~~~~~~~~
| DS1307_SquareWave1HZ
exit status 1
'OFF' was not declared in this scope
Vielen Dank schon mal im Voraus
Gruß Volker