These are chat archives for Makuna/NeoPixelBus

Jul 2018
Michael Miller
Jul 05 2018 18:02
The only thing that I could find that would work is that you define an inline conversion functions in your code for RgbColor to RgbwColor (as all others will auto convert to RgbColor) and another for RgbwColor to RgbColor using the same name and using this in your code.

RgbColor ColorFit(const RgbwColor& color) {
  return RgbColor(color.R, color.G, color.B);
RgbwColor ColorFit(const RgbColor& color) {
  return RgbwColor(color.R, color.G, color.B);
    strip.SetPixelColor( 0, ColorFit(myColor) );