Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error on compling with arduino ide #21

Open
megamarco833 opened this issue Sep 12, 2019 · 1 comment
Open

error on compling with arduino ide #21

megamarco833 opened this issue Sep 12, 2019 · 1 comment

Comments

@megamarco833
Copy link

megamarco833 commented Sep 12, 2019

hi, i'm try to compile the example simplepotentiometer with arduino IDE and selecting my board nodemcu v1 ESP8266

i change inside the code:

dimmerLamp dimmer(outputPin, zerocross); //initialase port for dimmer for ESP8266, ESP32, Arduino due boards
//dimmerLamp dimmer(outputPin); //initialase port for dimmer for MEGA, Leonardo, UNO, Arduino M0, Arduino Zero

i'm using esp8266 library version 2.3

and those are the errors that i receive:

`

ATTENZIONE: La categoria 'Input' della libreria MechInputs non è valida. La imposto a 'Uncategorized'
ATTENZIONE: La categoria 'Input' della libreria SerialSensors non è valida. La imposto a 'Uncategorized'
sketch\SimplePotentiometer.ino.cpp.o:(.text.setup+0xc): undefined reference to `dimmerLamp::begin(DIMMER_MODE_typedef, ON_OFF_typedef)'

sketch\SimplePotentiometer.ino.cpp.o: In function `HardwareSerial::begin(unsigned long)':

C:\Users\Marco\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/HardwareSerial.h:75: undefined reference to `dimmerLamp::begin(DIMMER_MODE_typedef, ON_OFF_typedef)'

sketch\SimplePotentiometer.ino.cpp.o: In function `setup':

C:\Users\Marco\Desktop\RBDDimmer-master\RBDDimmer-master\examples\SimplePotentiometer/SimplePotentiometer.ino:69: undefined reference to `dimmerLamp::setPower(int)'

sketch\SimplePotentiometer.ino.cpp.o: In function `loop':

C:\Users\Marco\Desktop\RBDDimmer-master\RBDDimmer-master\examples\SimplePotentiometer/SimplePotentiometer.ino:73: undefined reference to `dimmerLamp::setPower(int)'

C:\Users\Marco\Desktop\RBDDimmer-master\RBDDimmer-master\examples\SimplePotentiometer/SimplePotentiometer.ino:74: undefined reference to `dimmerLamp::dimmerLamp(int, int)'

sketch\SimplePotentiometer.ino.cpp.o: In function `__static_initialization_and_destruction_0':

C:\Users\Marco\Desktop\RBDDimmer-master\RBDDimmer-master\examples\SimplePotentiometer/SimplePotentiometer.ino:75: undefined reference to `dimmerLamp::dimmerLamp(int, int)'

collect2.exe: error: ld returned 1 exit status

exit status 1
Errore durante la compilazione per la scheda NodeMCU 1.0 (ESP-12E Module).
`

how i can solve? thanks

@fabianoriccardi
Copy link

Hi Marco,
did you solve this error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants