thehookup/RGBW-Sunrise-Animation-Neopixel-

verification problem

Opened this issue · 2 comments

I tried to verify the code before uploading it to my NodeMCU and got the following error message. Has anyone else experienced it?
I am not very familiar with writing code for arduino yet though i intend to learn, so if you have any solutions or even hints for figuring this out im all ears!

Arduino: 1.8.13 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"





















C:\Users\Carsten\Desktop\sunrise_test\sunrise_test.ino: In function 'void callback(char*, byte*, unsigned int)':

sunrise_test:171:11: error: 'class SimpleTimer' has no member named 'setTimeout'

     timer.setTimeout(wakeDelay, increaseSunPhase);

           ^

sunrise_test:172:11: error: 'class SimpleTimer' has no member named 'setTimeout'

     timer.setTimeout(wakeDelay, increaseWhiteLevel);

           ^

sunrise_test:173:11: error: 'class SimpleTimer' has no member named 'setTimeout'

     timer.setTimeout((wakeDelay/80), increaseFadeStep);

           ^

sunrise_test:174:11: error: 'class SimpleTimer' has no member named 'setTimeout'

     timer.setTimeout((wakeDelay/80), increaseSunFadeStep);

           ^

C:\Users\Carsten\Desktop\sunrise_test\sunrise_test.ino: In function 'void increaseSunPhase()':

sunrise_test:234:11: error: 'class SimpleTimer' has no member named 'setTimeout'

     timer.setTimeout(wakeDelay, increaseSunPhase);

           ^

sunrise_test:237:11: error: 'class SimpleTimer' has no member named 'setTimeout'

     timer.setTimeout((wakeDelay/80), increaseFadeStep);

           ^

sunrise_test:238:11: error: 'class SimpleTimer' has no member named 'setTimeout'

     timer.setTimeout((wakeDelay/80), increaseSunFadeStep);

           ^

C:\Users\Carsten\Desktop\sunrise_test\sunrise_test.ino: In function 'void increaseSunFadeStep()':

sunrise_test:247:11: error: 'class SimpleTimer' has no member named 'setTimeout'

     timer.setTimeout((wakeDelay/80), increaseSunFadeStep);

           ^

C:\Users\Carsten\Desktop\sunrise_test\sunrise_test.ino: In function 'void increaseFadeStep()':

sunrise_test:256:11: error: 'class SimpleTimer' has no member named 'setTimeout'

     timer.setTimeout((wakeDelay/80), increaseFadeStep);

           ^

C:\Users\Carsten\Desktop\sunrise_test\sunrise_test.ino: In function 'void increaseWhiteLevel()':

sunrise_test:265:11: error: 'class SimpleTimer' has no member named 'setTimeout'

     timer.setTimeout((wakeDelay, increaseWhiteLevel);

           ^

sunrise_test:265:53: error: expected ')' before ';' token

     timer.setTimeout((wakeDelay, increaseWhiteLevel);

                                                     ^

C:\Users\Carsten\Desktop\sunrise_test\sunrise_test.ino: In function 'void loop()':

sunrise_test:397:9: error: 'class SimpleTimer' has no member named 'run'

   timer.run();

         ^

Multiple libraries were found for "SimpleTimer.h"

 Used: C:\Users\Carsten\Documents\Arduino\libraries\SimpleTimer

 Not used: C:\Program Files (x86)\Arduino\libraries\SimpleTimer

exit status 1

'class SimpleTimer' has no member named 'setTimeout'



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

You've got the wrong SimpleTimer.h. Make sure you install and use https://github.com/thehookup/Simple-Timer-Library

you were right good sir, updated arduino IDE recently had multiple versions for a short time and ended up adding the right SimpleTimer in the wrong folder. Naturally it will not work properly that way. Thank you very much for your fast reply!