1#ifndef SENSESP_SYSTEM_PWM_OUTPUT_H
2#define SENSESP_SYSTEM_PWM_OUTPUT_H
44 PWMOutput(
int pin = -1,
int pwm_channel = -1,
int channel_frequency = 5000,
45 int channel_resolution = 13);
52 virtual void set(
const float& new_value)
override;
Provides a cross platform mechanism for generating Pulse Width Modulation signals over one or more GP...
void set_pwm(float value)
PWMOutput(int pin=-1, int pwm_channel=-1, int channel_frequency=5000, int channel_resolution=13)
static std::map< uint8_t, int8_t > channel_to_pin_
int assign_channel(int pin, int pwm_channel=-1)
virtual void set(const float &new_value) override
A base class for piece of code (like a transform) that accepts data for input. ValueConsumers can acc...