Class PwmOut
Defined in File pwm_out.h
Inheritance Relationships
Derived Type
public andino::PwmOutArduino(Class PwmOutArduino)
Class Documentation
-
class PwmOut
This class defines an interface for PWM outputs.
Subclassed by andino::PwmOutArduino
Public Functions
-
inline explicit PwmOut(const int gpio_pin)
Constructs a PwmOut using the specified GPIO pin.
- Parameters:
gpio_pin – GPIO pin.
-
inline virtual ~PwmOut()
Destructs the PWM output.
-
virtual void begin() const = 0
Initializes the PWM output.
-
virtual void write(int value) const = 0
Sets the PWM output value (0 to 255).
- Parameters:
value – PWM value.
Protected Attributes
-
const int gpio_pin_
GPIO pin.
-
inline explicit PwmOut(const int gpio_pin)