I am trying to find an HSL to RGB converter. The arduino reference suggests the ColorConverter library.
I have found the library in the library manager but I cannot get the library to work. I cannot get it to run the example sketch included with the library or in any of my projects. It gives a "RGBConverterLib.h: No such file or directory" error and fails to compile. I have successfully used other libraries.
The documentation for ColorConverter says that it has been deprecated and ESP-Color should be used instead. I cannot find ESP-Color in the library manager (and have not figued out how to import it as a custom library, different problem...)
Steps to reproduce:
Open the Web Editor
Create a new sketch
Search the library manager for ColorConverter.
Favourite it.
Open "Examples", choose the colorConverter example (the only one).
Include (or not).
Run.
Using an Arduino nano. My setup works fine for other sketches/libraries.
I installed the ColorConverter library on Arduino IDE 1.8.19 and it looks to me like the author missed a step when changing the library name from "RGBConverter" to "ColorConverter". They left the old name in the #include lines in both ColorConverter.h and ColorConverter.cpp:
#include <RGBConverter.h>
In both files, change the lines to: #include <ColorConverter.h>
I've had a chance to look at this. Thanks for the advice, it fixed that problem and uncovered the next. Now it gives me a "'strtoll' was not declared in this scope" error. Not sure if this is a problem with the library, unstated dependencies or an issue with the web editor.
This library is defintely broken, how can I recommend that it is removed from the official list? As I mentioned, the developer is no longer supporting it.
Any recommendations for a working color conversion library would be greatly appreciated, EasyColor (another one in the web editor) also seems to be broken.
I'll be able to write my own, but it's frustrating as libraries are supposed to make things easier!
Again, thanks for your help John, I appreciate you taking the time to give me a useful response.