ESPHome 2026.5.0b1
Loading...
Searching...
No Matches
sm2235.cpp
Go to the documentation of this file.
1#include "sm2235.h"
2#include "esphome/core/log.h"
3
4namespace esphome::sm2235 {
5
6static const char *const TAG = "sm2235";
7
9 this->data_pin_->setup();
10 this->data_pin_->digital_write(true);
11 this->clock_pin_->setup();
12 this->clock_pin_->digital_write(true);
13 this->pwm_amounts_.resize(5, 0);
14}
15
17 ESP_LOGCONFIG(TAG,
18 "SM2235:\n"
19 " Color Channels Max Power: %u\n"
20 " White Channels Max Power: %u",
22 LOG_PIN(" Data Pin: ", this->data_pin_);
23 LOG_PIN(" Clock Pin: ", this->clock_pin_);
24}
25
26} // namespace esphome::sm2235
virtual void setup()=0
virtual void digital_write(bool value)=0
std::vector< uint16_t > pwm_amounts_
void dump_config() override
Definition sm2235.cpp:16
void setup() override
Definition sm2235.cpp:8