chessmcu/NeoPixel.hpp
2025-07-30 21:48:16 -04:00

25 lines
491 B
C++

/*
* File: NeoPixel.hpp
* Author: amr
*
* Created on July 30, 2025, 9:35 PM
*/
#ifndef NEOPIXEL_HPP
#define NEOPIXEL_HPP
#include <stdint.h>
class NeoPixel {
public:
NeoPixel(uint8_t stringLength) : length(stringLength) {};
uint8_t setNeoPixel(uint8_t index, uint8_t red, uint8_t green, uint8_t blue);
void allPixelsOff(void);
private:
uint8_t sendPixelData(uint8_t count, uint8_t *data);
uint8_t PixelArray[64][3] = {{0}};
uint8_t length;
};
#endif // NEOPIXEL_HPP