LEDDriver_NXP_Arduino 0.1.2
LED driver device operation sample code for Arduino
|
#include <LEDDriver.h>
Public Member Functions | |
PCA995x (uint8_t n_ch, uint8_t PWM_r, uint8_t IREF_r, uint8_t IREFALL_r, uint8_t oe=8) | |
virtual | ~PCA995x () |
virtual void | begin (float current=0.1, board env=NONE) |
virtual void | init (float current)=0 |
void | irefall (uint8_t iref) |
![]() | |
LEDDriver (uint8_t n_ch, uint8_t PWM_r, uint8_t oe) | |
virtual | ~LEDDriver () |
virtual void | reg_access (uint8_t reg, uint8_t val)=0 |
virtual void | reg_access (uint8_t reg, uint8_t *vp, int len)=0 |
void | pwm (uint8_t ch, float value) |
void | pwm (float *values) |
Protected Attributes | |
const uint8_t | reg_IREF |
const uint8_t | reg_IREFALL |
![]() | |
const uint8_t | n_channel |
const uint8_t | reg_PWM |
const uint8_t | oe_pin |
Additional Inherited Members | |
![]() | |
enum | board { NONE , ARDUINO_SHIELD } |
PCA995x class
Base class to abstract behavior of PCA995x series
Definition at line 68 of file LEDDriver.h.
PCA995x::PCA995x | ( | uint8_t | n_ch, |
uint8_t | PWM_r, | ||
uint8_t | IREF_r, | ||
uint8_t | IREFALL_r, | ||
uint8_t | oe = 8 |
||
) |
Definition at line 34 of file LEDDriver.cpp.
|
virtual |
Definition at line 41 of file LEDDriver.cpp.
Definition at line 45 of file LEDDriver.cpp.
|
pure virtual |
void PCA995x::irefall | ( | uint8_t | iref | ) |
Set IREFALL value (current setting for all channels)
value | current value in float (0.0 ~ 1.0) |
Definition at line 55 of file LEDDriver.cpp.
Referenced by PCA9955B::init(), and PCA9956B::init().
|
protected |
Definition at line 84 of file LEDDriver.h.
|
protected |
Definition at line 85 of file LEDDriver.h.
Referenced by irefall(), and PCA995x_SPI::irefall().