Initial commit of MPLABX version
This commit is contained in:
commit
d80b03bdf0
10 changed files with 251 additions and 0 deletions
25
NeoPixel.hpp
Normal file
25
NeoPixel.hpp
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue