-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRow.h
More file actions
35 lines (31 loc) · 711 Bytes
/
Row.h
File metadata and controls
35 lines (31 loc) · 711 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
33
34
35
#ifndef Row_h
#define Row_h
#define ROWLENGTH 23
#include "Pixel.h"
#include "Arduino.h"
#include <Adafruit_NeoPixel.h>
#include <LinkedList.h>
class Row
{
public:
Row(int rowOffset, bool reverse, Adafruit_NeoPixel& pixels);
int handlePixel();
private:
Adafruit_NeoPixel _pixels;
int _incrementor;
int _rowOffset;
long _onColor;
long _offColor;
long _brightColor;
long _delay;
long _pixelOffTime;
bool _reverse;
void turnPixelOn(int pixelNum);
void setIncrementor();
void createPixel();
void createPixelCondition(int size, int position);
void removePixel(int pixelPos, int index, int size);
void hideLastPixel();
LinkedList<Pixel*>* _pixelList;
};
#endif