-
Notifications
You must be signed in to change notification settings - Fork 0
/
sound.h
137 lines (128 loc) · 7.43 KB
/
sound.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
/**
* This file is part of Wio Helium Monitor.
*
* Wio Helium Monitor is free software created by Paul Pinault aka disk91.
* You can redistribute it and/or modify it under the terms of the
* GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* Wio Helium Monitor is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Wio LoRaWan Field Tester. If not, see <https://www.gnu.org/licenses/>.
*
* Author : Paul Pinault (disk91.com)
*/
#ifndef __SOUND_H__
#define __SOUND_H__
void setupSound();
void playSound();
static unsigned int sOnWidth = 30;
static unsigned int sOnHeight = 24;
#define SOUND_PIXEL(data,pixel) {\
pixel[0] = (((data[0] - 33) << 2) | ((data[1] - 33) >> 4)); \
pixel[1] = ((((data[1] - 33) & 0xF) << 4) | ((data[2] - 33) >> 2)); \
pixel[2] = ((((data[2] - 33) & 0x3) << 6) | ((data[3] - 33))); \
data += 4; \
}
static char *soundOn_data =
"^P<W^P<W^04U^@8V^`@X^P<W^@8V^P<W^P<W^@8V^@8V^P<W^`@X^@8V^@8V^P<W"
"^P<W^04U^@8V^`@X^P<W^@8V^P<W^P<W^@8V^@8V^P<W^`@X^@8V^@8V^P<W^P<W"
"^@8V^@8V^`@X^P<W^@8V^P<W^P<W^@8V^@8V^P<W^`@X\\/TML;WNQM,#^P<W^@8V"
"^@8V^`@X^P<W^@8V^`@X_`P\\`@X^`````````````@X^_PL[^@8V^@8V_@HZ^`@X"
"]`0T^@8V^`@X^P<W^@8V^`@X_0DY^@8VW.D98V^@!!!!!!!!YO,C_@HZ^`@X]`0T"
"^@8V_PL[]`0T`P\\_````````````````````````^@8V^@8V^`@X^P<W^@8V^@8V"
"^P<W^P<W^@8V^P<W^`@XQM,#,CYO!!!!!!!!!!!!XN\\?^`@X^P<W^@8V_`P\\]P,S"
"B97&OLK[````````````````````````^P<W^P<W^@8V^@8V^`@X^P<W^@8V^P<W"
"^P<W]P,SI[/D!!!!!!!!!!!!!!!!!!!!X^`@^@8V^@8V_PL[````_`P\\H*S=<7VN"
"W^P<````````````````````^@8V^@8V^`@X^P<W^@8V^@8V^P<W^P<W[?HJAI+#"
"!!!!!!!!!!!!!!!!!!!!!!!!XN\\?^`@X^`@X\\_`PML+S`@X^]`0T?XN\\B97&_`P\\"
"````````````````^@8V^@8V]@(RWNL;UN,3T]`0T-T-QM,#7&B9!!!!!!!!!!!!"
"!!!!!!!!!!!!!!!!X.T=_@HZ`0T]P<W^<7VNQ]0$````S=H*<GZOU^04````````"
"````````^P<WZ/4E15&\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
"!!!!!!!!X^`@^@8V`````0T]E*#1>(2U^04U_0DY>86VHJ[?````````````````"
"^P<WJ;7F!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
"Y/$A^`@X````````W.D9<GZOSML+````J[?H<W^P_@HZ````````````^@8VJK;G"
"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!X>X>_`P\\"
"````````_PL[=8&RJ+3E````R=8&<GZO[/DI````````````^@8VJ;7F!!!!!!!!"
"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!XN\\?_PL[````````"
"````D9W.DI[/````V>86<GZOWNL;````````````^`@XI+#A!!!!!!!!!!!!!!!!"
"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Y?(B_0DY````````````EZ/4"
"C9G*````V>86<7VNW.D9````````````^P<WIK+C!!!!!!!!!!!!!!!!!!!!!!!!"
"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!X^`@_0DY`````````P\\_?8FZGJK;````"
"T-T-<7VNZ/4E````````````^@8VJ;7F!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
"!!!!!!!!!!!!!!!!!!!!!!!!XN\\?_@HZ````````ZO<G<7VNP<W^````ML+S<7VN"
"]`0T````````````^P<WIK+C!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
"!!!!!!!!!!!!!!!!X^`@_0DY````````KKKK<7VN[/DI`P\\_A9'\"C9G*````````"
"````````^`@XS-D)!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
"!!!!!!!!Y?(B^P<W````V^@8<'RMJ;7F````X.T=<'RMQM,#````````````````"
"^@8V^@8VS=H*H*S=E*#1CIK+C)C)@HZ_!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
"XN\\?_0DY````VN<7A9'\"]`0T`@X^E:'2=8&R]`0T````````````````^@8V^@8V"
"^`@X^P<W^@8V^@8V^P<W^P<WR=8&.45V!!!!!!!!!!!!!!!!!!!!!!!!XN\\?^`@X"
"````````_@HZ````Q-$!<'RMQ=(\"````````````````````^`@X^P<W^04U^@8V"
"_0DY^`@X^@8V^P<W^`@XWNL;8&R=!!!!!!!!!!!!!!!!!!!!Y/$A^04U`0T]````"
"````\\O\\O<7VNF*35_`P\\````````````````````^P<W^P<W^@8V^@8V^`@X^P<W"
"^@8V^P<W^P<W^@8V[OLKBI;'!!!!!!!!!!!!!!!!X^`@^@8V_0DY````````````"
"WNL;]`0T````````````````````````^@8V^@8V_@HZ^`@X^04U^@8V^`@X^P<W"
"^@8V^`@X_0DY]`0TL+SM!!!!!!!!!!!!X>X>_@HZ^`@X_`P\\````````````````"
"````````````````````````^@8V^@8V^`@X^P<W^@8V^@8V^P<W^P<W^@8V^P<W"
"^`@X^@8V^@8VT=X.0T]`C9G*]`0T^`@X^P<W^P<W`P\\_````````````````````"
"````````````````^P<W^P<W^@8V^@8V^`@X^P<W^@8V^P<W^P<W^@8V^@8V^P<W"
"^`@X^@8V^@8V^P<W^P<W^@8V^@8V^`@X_0DY````````````````````````````"
"````````^@8V^@8V^`@X^P<W^@8V^@8V^P<W^P<W^@8V^P<W^`@X^@8V^@8V^P<W"
"^P<W^@8V^@8V^`@X^P<W^@8V^@8V^`@X`P\\_````````````````````````````"
"";
static unsigned int sOffWidth = 30;
static unsigned int sOffHeight = 24;
static char *soundOff_data =
"^P<W^P<W^04U^@8V^`@X^P<W^@8V^P<W^P<W^@8V^@8V^P<W^`@X^@8V^@8V^P<W"
"^P<W^04U^@8V^`@X^P<W^@8V^P<W^P<W^@8V^@8V^P<W^`@X^@8V^@8V^P<W^P<W"
"^@8V^@8V^`@X^P<W^@8V^P<W^P<W^@8V^@8V^P<W^`@X\\/TML;WNQM,#^P<W^@8V"
"^@8V^`@X^P<W^@8V^P<W^P<W^@8V^@8V^P<W^`@X^@8V^@8V^@8V^@8V_@HZ^`@X"
"]`0T^@8V^`@X^P<W^@8V^`@X_0DY^@8VW.D98V^@!!!!!!!!YO,C_@HZ^`@X]`0T"
"^@8V^`@X^P<W^@8V^`@X_0DY^@8V]`0T^`@X^`@X^@8V^@8V^`@X^P<W^@8V^@8V"
"^P<W^P<W^@8V^P<W^`@XQM,#,CYO!!!!!!!!!!!!XN\\?^`@X^P<W^@8V^@8V^P<W"
"^P<W^@8V^P<W^`@X^@8V^@8V^P<W^P<W^P<W^P<W^@8V^@8V^`@X^P<W^@8V^P<W"
"^P<W]P,SI[/D!!!!!!!!!!!!!!!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