You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/DigitalRainAnim.h
+18-12Lines changed: 18 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -10,19 +10,22 @@
10
10
#include<TFT_eSPI.h>
11
11
#include<SPI.h>
12
12
13
-
#defineFONT_SIZE2//set font size 2
14
-
#defineLINE_WIDTH10//width for font size 2
15
-
#defineLETTER_HEIGHT14//height for font size 2
13
+
#defineFONT_SIZE2//set font size 2
14
+
#defineLINE_WIDTH10//width for font size 2
15
+
#defineLETTER_HEIGHT14//height for font size 2
16
+
#defineKEY_RESET_TIME60 * 1000//1 Min reset time
16
17
17
18
classDigitalRainAnim
18
19
{
19
20
public:
20
21
DigitalRainAnim();
21
-
voidinit(TFT_eSPI* tft); //initialization
22
+
voidinit(TFT_eSPI* tft); //initialization
22
23
voidinit(TFT_eSPI* tft, int new_line_len_min, int new_line_len_max, int new_line_speed_min, int new_line_speed_max, int new_timeFrame); //initialization with parameters
23
-
voidplay(); //play animation
24
-
voidpause(); //pause animation
25
-
voidresume(); //resume animation
24
+
voidloop(); //loop animation
25
+
voidpause(); //pause animation
26
+
voidresume(); //resume animation
27
+
std::string getKey(int key_length); //generating new key
0 commit comments