When building an Arduino project with FastLED, I get the following warning in red:
warning: #warning FastLED version 3.001.001 (Not really a warning, just telling you here.) [-Wcpp]
#warning FastLED version 3.001.001 (Not really a warning, just telling you here.)
^
I understand that this is important for folks who are working FastLED, but the warning seems unnecessary for regular users of the library.
Not at all unnecessary - I want the version number of the library spit out during compilation so that when people are having problems I can get a build log from them and get the exact version of the library that they're compiling with. I added this in after multiple rounds of helping people out who insisted they had one version of the library when a different version was being used.
This is going to stay in for now.
(Once I am sure that no one is using the library on versions of gcc older than 4.4.7 then i'll move this over to a pragma message - but there are some environments that this doesn't work on)
Why not at text message summarizing what you just said, rather than "Not really a warning, just telling you here." which left me feeling the same way the OP did until I came across this post???
i guess that if it didn't say "Not really a warning, just telling you here." then a lot more people would be on the message boards with... my code doesn't work, is it because i got warning #warning FastLED version 3.001.001????
Also IDE 1.6.9 (maybe also older versions) print this:
Using library FastLED at version 3.1.1 in folder: /Arduino/sketchbook/libraries/FastLED
Hi, chiming in.
Respectfully --> David
In file included from LampSketch1.ino:6:0:
/Users/poly/Documents/Arduino/libraries/FastLED-3.1.3/FastLED.h:17:21: note: #pragma message: FastLED version 3.001.003
# pragma message "FastLED version 3.001.003"
^
In file included from /Users/poly/Documents/Arduino/libraries/FastLED-3.1.3/FastLED.h:65:0,
from LampSketch1.ino:6:
/Users/poly/Documents/Arduino/libraries/FastLED-3.1.3/fastspi.h:110:23: note: #pragma message: No hardware SPI pins defined. All SPI access will default to bitbanged output
# pragma message "No hardware SPI pins defined. All SPI access will default to bitbanged output"
^
In file included from patterns.h:2:0,
from patterns.cpp:1:
/Users/poly/Documents/Arduino/libraries/FastLED-3.1.3/FastLED.h:17:21: note: #pragma message: FastLED version 3.001.003
# pragma message "FastLED version 3.001.003"
^
In file included from /Users/poly/Documents/Arduino/libraries/FastLED-3.1.3/FastLED.h:65:0,
from patterns.h:2,
from patterns.cpp:1:
/Users/poly/Documents/Arduino/libraries/FastLED-3.1.3/fastspi.h:110:23: note: #pragma message: No hardware SPI pins defined. All SPI access will default to bitbanged output
# pragma message "No hardware SPI pins defined. All SPI access will default to bitbanged output"
^
Sketch uses 287,197 bytes (27%) of program storage space. Maximum is 1,044,464 bytes.
Global variables use 45,892 bytes (56%) of dynamic memory, leaving 36,028 bytes for local variables. Maximum is 81,920 bytes.
Try this:
Thanks @aistisraudys
It helps me a lot :)
Most helpful comment
Hi, chiming in.
Respectfully --> David