#include <LEDDriver.h>
|
enum | board { NONE
, ARDUINO_SHIELD
} |
|
|
| LEDDriver (uint8_t n_ch, uint8_t PWM_r, uint8_t oe) |
|
virtual void | reg_access (uint8_t reg, uint8_t val)=0 |
|
virtual void | reg_access (uint8_t reg, uint8_t *vp, int len)=0 |
|
virtual uint8_t | reg_access (uint8_t reg)=0 |
|
virtual void | reg_access_r (uint8_t reg, uint8_t *vp, int len)=0 |
|
void | pwm (uint8_t ch, float value) |
|
void | pwm (float *values) |
|
void | buffer_enable (bool flag) |
|
void | flush (void) |
|
LEDDriver class
LEDDriver class is a base class for all LED drivers All actual device class will be derived from this class
Definition at line 35 of file LEDDriver.h.
◆ board
◆ LEDDriver()
LEDDriver::LEDDriver |
( |
uint8_t | n_ch, |
|
|
uint8_t | PWM_r, |
|
|
uint8_t | oe ) |
◆ ~LEDDriver()
LEDDriver::~LEDDriver |
( |
| ) |
|
|
virtual |
◆ buffer_enable()
void LEDDriver::buffer_enable |
( |
bool | flag | ) |
|
Buffer mode enable/Disble
- Parameters
-
Definition at line 47 of file LEDDriver.cpp.
◆ flush()
void LEDDriver::flush |
( |
void | | ) |
|
Flushing data
Send buffered PWM data to the LED driver
Definition at line 41 of file LEDDriver.cpp.
◆ pwm() [1/2]
void LEDDriver::pwm |
( |
float * | values | ) |
|
Set PWM value for all channels
- Parameters
-
reg | register number |
*value | pointer to PWM value in float (0.0 ~ 1.0) |
Definition at line 26 of file LEDDriver.cpp.
◆ pwm() [2/2]
void LEDDriver::pwm |
( |
uint8_t | ch, |
|
|
float | value ) |
Set PWM value for a channel
- Parameters
-
reg | register number |
value | PWM value in float (0.0 ~ 1.0) |
Definition at line 16 of file LEDDriver.cpp.
◆ n_channel
const uint8_t LEDDriver::n_channel |
◆ oe_pin
const uint8_t LEDDriver::oe_pin |
|
protected |
◆ reg_PWM
const uint8_t LEDDriver::reg_PWM |
|
protected |
The documentation for this class was generated from the following files: