Makuna / NeoPixelBus

An Arduino NeoPixel support library supporting a large variety of individually addressable LEDs. Please refer to the Wiki for more details. Please use the GitHub Discussions to ask questions as the GitHub Issues feature is used for bug tracking.
GNU Lesser General Public License v3.0
1.17k stars 257 forks source link

Compilation error on example sketch NeoPixelAnimation #193

Closed pacobyte closed 6 years ago

pacobyte commented 6 years ago

Arduino IDE version: v1.8.5 Board: Arduino UNO LED Chipset: SK6812 RGBW, 60 count

The next example sketch to give me a compilation error after my previously-reported NeoPixelCylon is NeoPixelAnimation. Here's the error:

NeoPixelAnimation:145: error: conversion from 'Neo4Elements::ColorObject {aka RgbwColor}' to non-scalar type 'RgbColor' requested
Makuna commented 6 years ago

Its the same issue as the other.

Your strip is defined to use a RgbwColor but you are assigning a pixel color to a RgbColor variable. You need to modify the sketch to use RgbwColor.

pacobyte commented 6 years ago

Thank you again. Problem solved.