-
Notifications
You must be signed in to change notification settings - Fork 0
/
animations.h
83 lines (65 loc) · 1.4 KB
/
animations.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#pragma once
typedef struct tagQCLights {
uint8_t o_red;
uint8_t o_org;
uint8_t o_yel;
uint8_t o_grn;
uint8_t o_blu;
uint8_t o_pnk;
uint8_t i_red;
uint8_t i_org;
uint8_t i_yel;
uint8_t i_grn;
uint8_t i_blu;
uint8_t i_pnk;
uint8_t f_red;
uint8_t f_grn;
uint8_t f_blu;
uint8_t l_sys;
uint16_t ring_delay;
uint16_t sys_delay;
} QCLights;
typedef struct tagQCRing {
uint8_t o_red;
uint8_t o_org;
uint8_t o_yel;
uint8_t o_grn;
uint8_t o_blu;
uint8_t o_pnk;
uint8_t i_red;
uint8_t i_org;
uint8_t i_yel;
uint8_t i_grn;
uint8_t i_blu;
uint8_t i_pnk;
uint16_t ring_delay;
} QCRing;
typedef struct tagQCSys {
uint8_t f_red;
uint8_t f_grn;
uint8_t f_blu;
uint8_t l_sys;
uint16_t sys_delay;
} QCSys;
extern QCRing *ring_animations[];
extern uint8_t ring_anim_lengths[];
extern QCSys heartbeats[][4];
extern QCRing qcr_blinky_short;
extern QCRing qcr_blinky_long;
extern QCRing qcr_ubercount_blinky;
#define BLING_START_INDEX 0
#define BLING_COUNT 10
#define UBLING_START_INDEX 10
#define UBLING_COUNT 10
#define UBER_START_INDEX 20
#define UBER_COUNT 10
#define NEWBADGE_INDEX 30
#define NEARBADGE_INDEX 31
#define BADGECOUNT_INDEX 32
#define SUPERUBER_INDEX 33
#define UBERCOUNT_INDEX 34
#define BLANK_INDEX 35
#define SYSTEM_PREBOOT_INDEX 7
#define SYSTEM_NEWBADGE_INDEX 8
#define SYSTEM_PARTY_INDEX 9
#define SYSTEM_BLANK_INDEX 12