ESPHome 2026.8.0-dev
Loading...
Searching...
No Matches
waveshare_io_ch32v003_output.h
Go to the documentation of this file.
1#pragma once
2
5
7
8class WaveshareIOCH32V003Output : public output::FloatOutput, public Parented<WaveshareIOCH32V003Component> {
9 public:
10 void set_pwm_safe_range(uint8_t min_value, uint8_t max_value) {
11 this->pwm_min_value_ = min_value;
12 this->pwm_max_value_ = max_value;
13 }
14
15 protected:
16 void write_state(float state) override;
17
18 uint8_t pwm_min_value_{1};
19 uint8_t pwm_max_value_{247};
20};
21
22} // namespace esphome::waveshare_io_ch32v003
Helper class to easily give an object a parent of type T.
Definition helpers.h:1875
Base class for all output components that can output a variable level, like PWM.
bool state
Definition fan.h:2