ESPHome 2026.8.0-dev
Loading...
Searching...
No Matches
esphome::waveshare_io_ch32v003::WaveshareIOCH32V003Output Class Reference

#include <waveshare_io_ch32v003_output.h>

Inheritance diagram for esphome::waveshare_io_ch32v003::WaveshareIOCH32V003Output:
esphome::output::FloatOutput esphome::Parented< WaveshareIOCH32V003Component > esphome::output::BinaryOutput

Public Member Functions

void set_pwm_safe_range (uint8_t min_value, uint8_t max_value)
 
- Public Member Functions inherited from esphome::output::FloatOutput
void set_max_power (float max_power)
 Set the maximum power output of this component.
 
void set_min_power (float min_power)
 Set the minimum power output of this component.
 
void set_zero_means_zero (bool zero_means_zero)
 Sets this output to ignore min_power for a 0 state.
 
template<bool _use_output_float_power_scaling = false>
void set_max_power (float max_power)
 
template<bool _use_output_float_power_scaling = false>
void set_min_power (float min_power)
 
template<bool _use_output_float_power_scaling = false>
void set_zero_means_zero (bool zero_means_zero)
 
void set_level (float state)
 Set the level of this float output, this is called from the front-end.
 
virtual void update_frequency (float frequency)
 Set the frequency of the output for PWM outputs.
 
float get_max_power () const
 Get the maximum power output.
 
float get_min_power () const
 Get the minimum power output.
 
float get_max_power () const
 Get the maximum power output.
 
float get_min_power () const
 Get the minimum power output.
 
- Public Member Functions inherited from esphome::output::BinaryOutput
void set_inverted (bool inverted)
 Set the inversion state of this binary output.
 
void set_power_supply (power_supply::PowerSupply *power_supply)
 Use this to connect up a power supply to this output.
 
virtual void set_state (bool state)
 Enable or disable this binary output.
 
virtual void turn_on ()
 Enable this binary output.
 
virtual void turn_off ()
 Disable this binary output.
 
bool is_inverted () const
 Return whether this binary output is inverted.
 
- Public Member Functions inherited from esphome::Parented< WaveshareIOCH32V003Component >
 Parented ()
 
 Parented (WaveshareIOCH32V003Component *parent)
 
WaveshareIOCH32V003Component * get_parent () const
 Get the parent of this object.
 
void set_parent (WaveshareIOCH32V003Component *parent)
 Set the parent of this object.
 

Protected Member Functions

void write_state (float state) override
 
- Protected Member Functions inherited from esphome::output::FloatOutput
void write_state (bool state) override
 Implement BinarySensor's write_enabled; this should never be called.
 
- Protected Member Functions inherited from esphome::output::BinaryOutput

Protected Attributes

uint8_t pwm_min_value_ {1}
 
uint8_t pwm_max_value_ {247}
 
- Protected Attributes inherited from esphome::output::FloatOutput
float max_power_ {1.0f}
 
float min_power_ {0.0f}
 
bool zero_means_zero_ {false}
 
- Protected Attributes inherited from esphome::output::BinaryOutput
bool inverted_ {false}
 
power_supply::PowerSupplyRequester power_ {}
 
- Protected Attributes inherited from esphome::Parented< WaveshareIOCH32V003Component >
WaveshareIOCH32V003Component * parent_
 

Detailed Description

Definition at line 8 of file waveshare_io_ch32v003_output.h.

Member Function Documentation

◆ set_pwm_safe_range()

void esphome::waveshare_io_ch32v003::WaveshareIOCH32V003Output::set_pwm_safe_range ( uint8_t min_value,
uint8_t max_value )
inline

Definition at line 10 of file waveshare_io_ch32v003_output.h.

◆ write_state()

void esphome::waveshare_io_ch32v003::WaveshareIOCH32V003Output::write_state ( float state)
overrideprotectedvirtual

Implements esphome::output::FloatOutput.

Definition at line 9 of file waveshare_io_ch32v003_output.cpp.

Field Documentation

◆ pwm_max_value_

uint8_t esphome::waveshare_io_ch32v003::WaveshareIOCH32V003Output::pwm_max_value_ {247}
protected

Definition at line 19 of file waveshare_io_ch32v003_output.h.

◆ pwm_min_value_

uint8_t esphome::waveshare_io_ch32v003::WaveshareIOCH32V003Output::pwm_min_value_ {1}
protected

Definition at line 18 of file waveshare_io_ch32v003_output.h.


The documentation for this class was generated from the following files: