mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 23:18:10 +01:00
Co-authored-by: Otto Winter <otto@otto-winter.com>
This commit is contained in:
parent
b91a1aa027
commit
403b6e32e3
1 changed files with 2 additions and 1 deletions
|
@ -68,7 +68,8 @@ class NeoPixelBusLightOutputBase : public light::AddressableLight {
|
|||
void add_leds(uint16_t count_pixels) { this->add_leds(new NeoPixelBus<T_COLOR_FEATURE, T_METHOD>(count_pixels)); }
|
||||
void add_leds(NeoPixelBus<T_COLOR_FEATURE, T_METHOD> *controller) {
|
||||
this->controller_ = controller;
|
||||
this->controller_->Begin();
|
||||
// controller gets initialised in setup() - avoid calling twice (crashes with RMT)
|
||||
// this->controller_->Begin();
|
||||
}
|
||||
|
||||
// ========== INTERNAL METHODS ==========
|
||||
|
|
Loading…
Reference in a new issue