forked from leonyuhanov/VolumetricPixelMapperWithUnity
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNeoViaSPI.h
More file actions
32 lines (27 loc) · 702 Bytes
/
NeoViaSPI.h
File metadata and controls
32 lines (27 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef NeoViaSPI_h
#define NeoViaSPI_h
#include "Arduino.h"
class NeoViaSPI
{
public:
NeoViaSPI(unsigned short int numLEDs);
void setPixel(short int pixelIndex, byte *pixelColour);
void getPixel(short int pixelIndex, byte *pixelColour);
void encode();
byte* LEDs;
byte* neoBits;
unsigned short int _rainbowSize;
unsigned short int _LEDframeLength;
unsigned short int _NeoBitsframeLength;
unsigned short int _numLEDs;
unsigned short int _counter;
unsigned short int _nCounter;
byte _colCounter;
byte _bitCounter;
private:
byte _blankValue;
byte _tmpValue;
byte _blankBlock;
byte _testValues[4][2];
};
#endif