ESPHome 2025.5.2
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
sm2235.cpp
Go to the documentation of this file.
1#include "sm2235.h"
2#include "esphome/core/log.h"
3
4namespace esphome {
5namespace sm2235 {
6
7static const char *const TAG = "sm2235";
8
10 ESP_LOGCONFIG(TAG, "Setting up sm2235 Output Component...");
11 this->data_pin_->setup();
12 this->data_pin_->digital_write(true);
13 this->clock_pin_->setup();
14 this->clock_pin_->digital_write(true);
15 this->pwm_amounts_.resize(5, 0);
16}
17
19 ESP_LOGCONFIG(TAG, "sm2235:");
20 LOG_PIN(" Data Pin: ", this->data_pin_);
21 LOG_PIN(" Clock Pin: ", this->clock_pin_);
22 ESP_LOGCONFIG(TAG, " Color Channels Max Power: %u", this->max_power_color_channels_);
23 ESP_LOGCONFIG(TAG, " White Channels Max Power: %u", this->max_power_white_channels_);
24}
25
26} // namespace sm2235
27} // namespace esphome
virtual void setup()=0
virtual void digital_write(bool value)=0
std::vector< uint16_t > pwm_amounts_
void dump_config() override
Definition sm2235.cpp:18
void setup() override
Definition sm2235.cpp:9
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7