mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-19 04:33:27 +02:00
Migrate ESPColor to Color (#1551)
* Migrate ESPColor to Color * color.h constructor fix * Updated componets to use Color Added a using for ESPColor * Lint fixes * Fixed value error * Update display components to use colorutil * Updated to latest PR comments * Fixed COLOR_WHITE * Moved esp_scale to color_utils * Rename color_utils to display_color_utils
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "esphome/core/component.h"
|
||||
#include "esphome/core/helpers.h"
|
||||
#include "esphome/core/color.h"
|
||||
#include "esphome/components/light/light_output.h"
|
||||
#include "esphome/components/light/addressable_light.h"
|
||||
|
||||
@@ -73,7 +74,7 @@ class NeoPixelBusLightOutputBase : public light::AddressableLight {
|
||||
// ========== INTERNAL METHODS ==========
|
||||
void setup() override {
|
||||
for (int i = 0; i < this->size(); i++) {
|
||||
(*this)[i] = light::ESPColor(0, 0, 0, 0);
|
||||
(*this)[i] = Color(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
this->effect_data_ = new uint8_t[this->size()];
|
||||
|
||||
Reference in New Issue
Block a user