forked from bracci/Qlockthree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Transitions.h
38 lines (32 loc) · 1.03 KB
/
Transitions.h
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
36
37
38
/**
* Transitions.h
* Transitionen bei Wechsel Zeitmatrix
*
* @mc Arduino/UNO
* @autor Manuel Bracher / [email protected]
* @version 1.0
* @created 19.05.15
*
* Versionshistorie:
* V 1.0: - Erstellt.
*/
#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