ESPHome 2025.6.3
Loading...
Searching...
No Matches
sm2335.cpp
Go to the documentation of this file.
1#include "sm2335.h"
2#include "esphome/core/log.h"
3
4namespace esphome {
5namespace sm2335 {
6
7static const char *const TAG = "sm2335";
8
10 ESP_LOGCONFIG(TAG, "Running setup");
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, "sm2335:");
20 LOG_PIN(" Data Pin: ", this->data_pin_);
21 LOG_PIN(" Clock Pin: ", this->clock_pin_);
22 ESP_LOGCONFIG(TAG,
23 " Color Channels Max Power: %u\n"
24 " White Channels Max Power: %u",
26}
27
28} // namespace sm2335
29} // namespace esphome
virtual void setup()=0
virtual void digital_write(bool value)=0
std::vector< uint16_t > pwm_amounts_
void setup() override
Definition sm2335.cpp:9
void dump_config() override
Definition sm2335.cpp:18
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7