arduinogetstarted / led Goto Github PK
View Code? Open in Web Editor NEWLED Library for Arduino, ESP8266, ESP32
License: Other
LED Library for Arduino, ESP8266, ESP32
License: Other
I am having some trouble compiling this library for ESP8266 Wemos D1 mini. I have installed the library though the Arduino Library Manager (v1.0.0). I have also tried downloading the zip from github and same thing. I am using Arduino version 1.8.19 under linux. Just with the include -no need to instantiate any object- I start getting quite a few compile errors.
/home/fonso/Arduino/libraries/ezLED/src/ezLED.cpp:34:1: error: default argument given for parameter 2 of 'ezLED::ezLED(int, int)' [-fpermissive]
34 | ezLED::ezLED(int pin, int mode = CTRL_ANODE) {
| ^~~~~
In file included from /home/fonso/Arduino/libraries/ezLED/src/ezLED.cpp:32:
/home/fonso/Arduino/libraries/ezLED/src/ezLED.h:89:3: note: previous specification in 'ezLED::ezLED(int, int)' here
89 | ezLED(int pin, int mode = CTRL_ANODE);
| ^~~~~
/home/fonso/Arduino/libraries/ezLED/src/ezLED.cpp:81:6: error: default argument given for parameter 1 of 'void ezLED::turnON(long unsigned int)' [-fpermissive]
81 | void ezLED::turnON(unsigned long delayTime = 0) {
| ^~~~~
In file included from /home/fonso/Arduino/libraries/ezLED/src/ezLED.cpp:32:
/home/fonso/Arduino/libraries/ezLED/src/ezLED.h:90:8: note: previous specification in 'void ezLED::turnON(long unsigned int)' here
90 | void turnON(unsigned long delayTime = 0);
| ^~~~~~
/home/fonso/Arduino/libraries/ezLED/src/ezLED.cpp:95:6: error: default argument given for parameter 1 of 'void ezLED::turnOFF(long unsigned int)'
95 | void ezLED::turnOFF(unsigned long delayTime = 0) {
| ^~~~~
In file included from /home/fonso/Arduino/libraries/ezLED/src/ezLED.cpp:32:
/home/fonso/Arduino/libraries/ezLED/src/ezLED.h:91:8: note: previous specification in 'void ezLED::turnOFF(long unsigned int)' here
91 | void turnOFF(unsigned long delayTime = 0);
| ^~~~~~~
/home/fonso/Arduino/libraries/ezLED/src/ezLED.cpp:109:6: error: default argument given for parameter 1 of 'void ezLED::toggle(long unsigned int)'
109 | void ezLED::toggle(unsigned long delayTime = 0) {
| ^~~~~
In file included from /home/fonso/Arduino/libraries/ezLED/src/ezLED.cpp:32:
/home/fonso/Arduino/libraries/ezLED/src/ezLED.h:92:8: note: previous specification in 'void ezLED::toggle(long unsigned int)' here
92 | void toggle(unsigned long delayTime = 0);
| ^~~~~~
/home/fonso/Arduino/libraries/ezLED/src/ezLED.cpp:125:6: error: default argument given for parameter 4 of 'void ezLED::fade(int, int, long unsigned int, long unsigned int)' [-fpermissive]
125 | void ezLED::fade(int fadeFrom, int fadeTo, unsigned long fadeTime, unsigned long delayTime = 0) {
| ^~~~~
In file included from /home/fonso/Arduino/libraries/ezLED/src/ezLED.cpp:32:
/home/fonso/Arduino/libraries/ezLED/src/ezLED.h:94:8: note: previous specification in 'void ezLED::fade(int, int, long unsigned int, long unsigned int)' here
94 | void fade(int fadeFrom, int fadeTo, unsigned long fadeTime, unsigned long delayTime = 0);
| ^~~~
/home/fonso/Arduino/libraries/ezLED/src/ezLED.cpp:141:6: error: default argument given for parameter 3 of 'void ezLED::blink(long unsigned int, long unsigned int, long unsigned int)' [-fpermissive]
141 | void ezLED::blink(unsigned long onTime, unsigned long offTime, unsigned long delayTime = 0) {
| ^~~~~
In file included from /home/fonso/Arduino/libraries/ezLED/src/ezLED.cpp:32:
/home/fonso/Arduino/libraries/ezLED/src/ezLED.h:96:8: note: previous specification in 'void ezLED::blink(long unsigned int, long unsigned int, long unsigned int)' here
96 | void blink(unsigned long onTime, unsigned long offTime, unsigned long delayTime = 0);
| ^~~~~
/home/fonso/Arduino/libraries/ezLED/src/ezLED.cpp:159:6: error: default argument given for parameter 4 of 'void ezLED::blinkInPeriod(long unsigned int, long unsigned int, long unsigned int, long unsigned int)' [-fpermissive]
159 | void ezLED::blinkInPeriod(unsigned long onTime, unsigned long offTime, unsigned long blinkTime, unsigned long delayTime = 0) {
| ^~~~~
In file included from /home/fonso/Arduino/libraries/ezLED/src/ezLED.cpp:32:
/home/fonso/Arduino/libraries/ezLED/src/ezLED.h:97:8: note: previous specification in 'void ezLED::blinkInPeriod(long unsigned int, long unsigned int, long unsigned int, long unsigned int)' here
97 | void blinkInPeriod(unsigned long onTime, unsigned long offTime, unsigned long blinkTime, unsigned long delayTime = 0);
| ^~~~~~~~~~~~~
/home/fonso/Arduino/libraries/ezLED/src/ezLED.cpp:179:6: error: default argument given for parameter 4 of 'void ezLED::blinkNumberOfTimes(long unsigned int, long unsigned int, unsigned int, long unsigned int)' [-fpermissive]
179 | void ezLED::blinkNumberOfTimes(unsigned long onTime, unsigned long offTime, unsigned int numberOfTimes, unsigned long delayTime = 0) {
| ^~~~~
In file included from /home/fonso/Arduino/libraries/ezLED/src/ezLED.cpp:32:
/home/fonso/Arduino/libraries/ezLED/src/ezLED.h:98:8: note: previous specification in 'void ezLED::blinkNumberOfTimes(long unsigned int, long unsigned int, unsigned int, long unsigned int)' here
98 | void blinkNumberOfTimes(unsigned long onTime, unsigned long offTime, unsigned int numberOfTimes, unsigned long delayTime = 0);
| ^~~~~~~~~~~~~~~~~~
exit status 1
Error compiling for board LOLIN(WEMOS) D1 R2 & mini.
I appreciate if someone can help on this.
Hi!
Like the title says, could a breath effect be implemented in the library? (A fade in + fade out forever effect)?
Also, to add any type of blink array pattern? Something like this: pattern[] = { 100, 500, 100, 2000 }; -- So on for 100 ms, off for 500ms, on for more 100 ms and off for 2000 ms?
And one more thing.. if possible.. ... maybe a two color led setup, like create yellow from red and green common cathode leds.
Just some ideas. I'm using a Single Led Library that has pattern and breathe effect. I had to manually create the "yellow" led also, as the Single Led Library also doesn't have it.
Thanks!!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.