mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-06 21:09:53 +02:00
sm2135: add separate_modes option to support different chip variants (#6152)
This commit is contained in:
@@ -39,6 +39,8 @@ class SM2135 : public Component {
|
||||
this->current_mask_ = (this->rgb_current_ << 4) | this->cw_current_;
|
||||
}
|
||||
|
||||
void set_separate_modes(bool separate_modes) { this->separate_modes_ = separate_modes; }
|
||||
|
||||
void setup() override;
|
||||
|
||||
void dump_config() override;
|
||||
@@ -78,6 +80,7 @@ class SM2135 : public Component {
|
||||
uint8_t current_mask_;
|
||||
SM2135Current rgb_current_;
|
||||
SM2135Current cw_current_;
|
||||
bool separate_modes_;
|
||||
uint8_t update_channel_;
|
||||
std::vector<uint8_t> pwm_amounts_;
|
||||
bool update_{true};
|
||||
|
||||
Reference in New Issue
Block a user