daisy::NeoPixelI2CTransport¶
Module: External
#include <neopixel.h>
Public Classes¶
Name | |
---|---|
struct | Config |
Public Functions¶
Name | |
---|---|
NeoPixelI2CTransport() | |
~NeoPixelI2CTransport() | |
void | Init(Config config) |
void | Write(uint8_t * data, uint16_t size) |
void | Read(uint8_t * data, uint16_t size) |
void | ReadLen(uint8_t reg_high, uint8_t reg_low, uint8_t * buff, uint16_t size) |
void | WriteLen(uint8_t reg_high, uint8_t reg_low, uint8_t * buff, uint16_t size) |
void | Write8(uint8_t reg_high, uint8_t reg_low, uint8_t value) |
uint8_t | Read8(uint8_t reg_high, uint8_t reg_low) |
bool | GetError() |
Detailed Description¶
I2C Transport for NeoPixel
Public Functions Documentation¶
function NeoPixelI2CTransport¶
function ~NeoPixelI2CTransport¶
function Init¶
function Write¶
function Read¶
function ReadLen¶
function WriteLen¶
function Write8¶
Parameters:
- reg the register address to write to
- value the value to write to the register
Writes an 8 bit value
function Read8¶
Parameters:
- reg the register address to read from
Return: the 16 bit data value read from the device
Reads an 8 bit value
function GetError¶
---¶
Updated on 2024-01-03 at 19:41:01 +0000