-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTransitions.h
More file actions
28 lines (23 loc) · 839 Bytes
/
Copy pathTransitions.h
File metadata and controls
28 lines (23 loc) · 839 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
/*
Transitions
*/
#ifndef TRANSITIONS_H
#define TRANSITIONS_H
#include "Arduino.h"
class Transitions {
public:
static boolean nextSlideStep (word matrixNew[16], word matrix[16]);
static void resetTransition();
static boolean nextMatrixStep(word matrixOld[16], word matrixNew[16], word matrixOverlay[16], word matrix[16]);
private:
static void shiftColumnDown(word matrix[16], byte column);
static void shiftColumnUp (word matrixNew[16], word matrix[16], byte column);
static void shiftDownMatrixErease(word matrixMatrix[16], word matrixWeak[16]);
static void shiftDownMatrixWrite(word matrixMatrix[16], word matrixWeak[16]);
static byte _counter;
static word _usedColumns;
static byte _remainingCoulumnCount;
static boolean _ereasingDone;
static boolean _writingDone;
};
#endif