Compiling errors when enabling SOFT_ACCENT
Closed this issue · 7 comments
Yesterday I was testing the SOFT_ACCENT feature and I got two different problems when compiling the build.
The first issue was raised against fadeAccent(), that was not declared.
I solved the problem adding the following definition in the light.h file:
76 void fadeAccent();
Right after fixing the fadeAccent(), I got the following error messages, which I'm not able to understand and solve:
Arduino: 1.8.5 (Mac OS X), Board: "Arduino Nano, ATmega328"
sketch/ConfigMenu.cpp.o (symbol from plugin): In function confParseValue(unsigned int, unsigned int, unsigned int, short)': (.text+0x0): multiple definition of
pwmPin'
sketch/Buttons.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch/FX-SaberOS.ino.cpp.o (symbol from plugin): In function MPU6050::dmpInitialize_light()': (.text+0x0): multiple definition of
pwmPin'
sketch/Buttons.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch/Light.cpp.o (symbol from plugin): In function lastAccent': (.text+0x0): multiple definition of
pwmPin'
sketch/Buttons.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
Multiple libraries were found for "Wire.h"
Used: /Users/smadama/Library/Arduino15/packages/arduino/hardware/avr/1.6.17/libraries/Wire
Not used: /Users/smadama/Documents/Arduino/libraries/Wire
Multiple libraries were found for "DFPlayerSerial.h"
Used: /Users/smadama/Documents/Arduino/libraries/DFPlayer_LSOS
Not used: /Users/smadama/Documents/Arduino/libraries/DFPlayer
Not used: /Users/smadama/Documents/Arduino/libraries/DFPlayer
Not used: /Users/smadama/Documents/Arduino/libraries/DFPlayer
Not used: /Users/smadama/Documents/Arduino/libraries/DFPlayer
exit status 1
Error compiling for board Arduino Nano.
Can anyone look into this problem ?
It is still occurring with the latest build.
Well, it seems quite a drastic answer.
Is there any plan to complete the feature in the near future ?
Alternatively, can someone at least give me suggestions to try and understand why I get these "multiple definition of" errors?
I may try to work on it on my own, if I know what to look for.
I can secound jbkuma, no one ever used this function, I also see no value in it. I also removed it already, no idea how it sneaked back again... Anyway, with the Prime if not driving segmented LED strings you have ample PWM channels available to make your soft accent with them, so no need for these functions.
Sorry for replying so late, but last week I had a little surgery and only now I find some time for other matters.
The idea of driving accents with Pixels is nice, but I guess it won't be compatible with the sabers using Star Led setup, unless we can enable pixel support also in this case.
Anyway, I will not use anymore the Soft-Accent, however I still like the idea of having a soft-pulsing accent LED.
I will see if I can find some kind of solution, and in case will let you know.
I leave the post open in case anyone may want to add something, elsewhere it can be closed.