mirror of
https://github.com/Makuna/NeoPixelBus.git
synced 2025-08-27 14:20:55 +02:00
@@ -26,11 +26,33 @@ License along with NeoPixel. If not, see
|
|||||||
-------------------------------------------------------------------------*/
|
-------------------------------------------------------------------------*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
class Lpd88063Elements
|
class Lpd88063ElementsNoSettings
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
typedef NeoNoSettings SettingsObject;
|
||||||
|
static const size_t SettingsSize = 0;
|
||||||
|
|
||||||
|
static void applySettings(uint8_t*, const SettingsObject&)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
static uint8_t* pixels(uint8_t* pData)
|
||||||
|
{
|
||||||
|
return pData;
|
||||||
|
}
|
||||||
|
|
||||||
|
static const uint8_t* pixels(const uint8_t* pData)
|
||||||
|
{
|
||||||
|
return pData;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
class Lpd88063Elements : public Lpd88063ElementsNoSettings
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static const size_t PixelSize = 3;
|
static const size_t PixelSize = 3;
|
||||||
|
|
||||||
|
|
||||||
static uint8_t* getPixelAddress(uint8_t* pPixels, uint16_t indexPixel)
|
static uint8_t* getPixelAddress(uint8_t* pPixels, uint16_t indexPixel)
|
||||||
{
|
{
|
||||||
return pPixels + indexPixel * PixelSize;
|
return pPixels + indexPixel * PixelSize;
|
||||||
|
@@ -437,7 +437,7 @@ private:
|
|||||||
// handle here is the RX_EOF_INT status, which indicate the DMA has sent a buffer whose
|
// handle here is the RX_EOF_INT status, which indicate the DMA has sent a buffer whose
|
||||||
// descriptor has the 'EOF' field set to 1.
|
// descriptor has the 'EOF' field set to 1.
|
||||||
// in the case of this code, the second to last state descriptor
|
// in the case of this code, the second to last state descriptor
|
||||||
volatile static void ICACHE_RAM_ATTR i2s_slc_isr(void)
|
static void ICACHE_RAM_ATTR i2s_slc_isr(void)
|
||||||
{
|
{
|
||||||
ETS_SLC_INTR_DISABLE();
|
ETS_SLC_INTR_DISABLE();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user