1#ifndef Driver_LED_Pimoroni_RedGreeBlue_h_
2#define Driver_LED_Pimoroni_RedGreeBlue_h_
16#include "pimoroni_common.hpp"
34 : pimoroni::RGBLED( pin_r, pin_g, pin_b, polarity, brightness )
42 RGBLED::startDriver();
52 void setRgb( uint8_t redValue, uint8_t greenValue, uint8_t blueValue )
noexcept
54 set_rgb( redValue, greenValue, blueValue );
58 void setHsv(
float hue,
float saturation,
float value )
noexcept
60 set_hsv( hue, saturation, value );
66 set_brightness( brightness );
This class defines a generic interface for controlling a simple PWM output signal.
Definition Pwm.h:35
This concrete class is wrapper to the GENERIC pimoroni RGBLED class.
Definition RedGreenBlue.h:30
void stop() noexcept
See Driver::LED::RedGreeBlue.
Definition RedGreenBlue.h:46
void setRgb(uint8_t redValue, uint8_t greenValue, uint8_t blueValue) noexcept
See Driver::LED::RedGreeBlue.
Definition RedGreenBlue.h:52
void setHsv(float hue, float saturation, float value) noexcept
See Driver::LED::RedGreeBlue.
Definition RedGreenBlue.h:58
RedGreenBlue(Driver::DIO::Pwm &pin_r, Driver::DIO::Pwm &pin_g, Driver::DIO::Pwm &pin_b, pimoroni::Polarity polarity=pimoroni::Polarity::ACTIVE_LOW, uint8_t brightness=255)
Constructor.
Definition RedGreenBlue.h:33
void setBrightness(uint8_t brightness) noexcept
See Driver::LED::RedGreeBlue.
Definition RedGreenBlue.h:64
void start() noexcept
See Driver::LED::RedGreeBlue.
Definition RedGreenBlue.h:40
This abstract class defines a basic interface for a single Red-Green-Blue LED where the application c...
Definition RedGreenBlue.h:27