mirror of
https://github.com/esphome/esphome.git
synced 2025-09-21 12:42:21 +01:00
feat: add clear_fram method to DynamicLampComponent for FRAM clearing functionality
This commit is contained in:
@@ -410,6 +410,10 @@ void DynamicLampComponent::restore_timers_() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DynamicLampComponent::clear_fram_() {
|
||||||
|
this->fram_->clear();
|
||||||
|
}
|
||||||
|
|
||||||
std::vector<uint8_t> DynamicLampComponent::split_to_int_vector_(std::string lamp_list_str) {
|
std::vector<uint8_t> DynamicLampComponent::split_to_int_vector_(std::string lamp_list_str) {
|
||||||
std::vector<uint8_t> tokens;
|
std::vector<uint8_t> tokens;
|
||||||
std::stringstream sstream(lamp_list_str);
|
std::stringstream sstream(lamp_list_str);
|
||||||
|
@@ -123,6 +123,7 @@ class DynamicLampComponent : public Component {
|
|||||||
std::array<bool, 16> get_lamp_outputs_by_name_(std::string lamp_name);
|
std::array<bool, 16> get_lamp_outputs_by_name_(std::string lamp_name);
|
||||||
std::vector<uint8_t> split_to_int_vector_(std::string lamp_list_str);
|
std::vector<uint8_t> split_to_int_vector_(std::string lamp_list_str);
|
||||||
std::vector<bool> build_lamp_list_from_list_str_(std::string lamp_list_str);
|
std::vector<bool> build_lamp_list_from_list_str_(std::string lamp_list_str);
|
||||||
|
void clear_fram_();
|
||||||
|
|
||||||
CombinedLamp active_lamps_[16];
|
CombinedLamp active_lamps_[16];
|
||||||
LinkedOutput available_outputs_[16];
|
LinkedOutput available_outputs_[16];
|
||||||
|
Reference in New Issue
Block a user