Class daisy::NeoPixelI2CTransport¶
ClassList > daisy > NeoPixelI2CTransport
#include <neopixel.h>
Classes¶
Type | Name |
---|---|
struct | Config |
Public Functions¶
Type | Name |
---|---|
bool | GetError () |
void | Init (Config config) |
NeoPixelI2CTransport () |
|
void | Read (uint8_t * data, uint16_t size) |
uint8_t | Read8 (uint8_t reg_high, uint8_t reg_low) |
void | ReadLen (uint8_t reg_high, uint8_t reg_low, uint8_t * buff, uint16_t size) |
void | Write (uint8_t * data, uint16_t size) |
void | Write8 (uint8_t reg_high, uint8_t reg_low, uint8_t value) |
void | WriteLen (uint8_t reg_high, uint8_t reg_low, uint8_t * buff, uint16_t size) |
~NeoPixelI2CTransport () |
Detailed Description¶
I2C Transport for NeoPixel
Public Functions Documentation¶
function GetError¶
function Init¶
function NeoPixelI2CTransport¶
function Read¶
function Read8¶
Reads an 8 bit value
Parameters:
reg
the register address to read from
Returns:
the 16 bit data value read from the device
function ReadLen¶
inline void daisy::NeoPixelI2CTransport::ReadLen (
uint8_t reg_high,
uint8_t reg_low,
uint8_t * buff,
uint16_t size
)
function Write¶
function Write8¶
inline void daisy::NeoPixelI2CTransport::Write8 (
uint8_t reg_high,
uint8_t reg_low,
uint8_t value
)
Writes an 8 bit value
Parameters:
reg
the register address to write tovalue
the value to write to the register
function WriteLen¶
inline void daisy::NeoPixelI2CTransport::WriteLen (
uint8_t reg_high,
uint8_t reg_low,
uint8_t * buff,
uint16_t size
)
function ~NeoPixelI2CTransport¶
The documentation for this class was generated from the following file external-docs/libDaisy/src/dev/neopixel.h