SmoothProgress
1.0.0
Displays smooth progress bars on a character based LCD displays for Arduino
BarStyleV2.h
1
#ifndef BAR_STYLE_V_2
2
#define BAR_STYLE_V_2
3
4
// Contains the bit masks defining a style for a smooth progress bar
5
// to be used with SmoothProgress library
6
// https://github.com/Gjorgjevikj/SmoothProgress.git
7
//
8
// Defines a vertical smooth progress bar in square frame
9
// 1 pixel frame, 1 pixel margin to frame, rounded edges
10
11
#include <barstyle.h>
12
13
#ifdef BAR_STYLE_V_2_IN_PROGMEM
14
static
const
PROGMEM
struct
barstyle
15
#else
16
static const struct
barstyle
17
#endif
18
19
barStyleV2 = {
20
{
21
{
// bottomANDmask
22
0b01110,
23
0b01110,
24
0b01110,
25
0b01110,
26
0b01110,
27
0b01110,
28
0b01110,
29
0b00000},
30
{
// bottomORmask
31
0b10001,
32
0b10001,
33
0b10001,
34
0b10001,
35
0b10001,
36
0b10001,
37
0b10001,
38
0b01110}
39
},
40
{
41
{
// topANDmask
42
0b00000,
43
0b01110,
44
0b01110,
45
0b01110,
46
0b01110,
47
0b01110,
48
0b01110,
49
0b01110},
50
{
// topORmask
51
0b01110,
52
0b10001,
53
0b10001,
54
0b10001,
55
0b10001,
56
0b10001,
57
0b10001,
58
0b10001}
59
},
60
{
61
{
// middleANDmask
62
0b01110,
63
0b01110,
64
0b01110,
65
0b01110,
66
0b01110,
67
0b01110,
68
0b01110,
69
0b01110},
70
{
// middleORmask
71
0b10001,
72
0b10001,
73
0b10001,
74
0b10001,
75
0b10001,
76
0b10001,
77
0b10001,
78
0b10001}
79
},
80
1,
// BottomOffset
81
1,
// TopOffset
82
1
// orientation...
83
};
84
85
86
#endif
// BAR_STYLE_V_2
barstyle
Structure holding the bit-masks and other data used for drawing the edges of the progress bar that de...
Definition:
barstyle.h:40
src
BarStyleV2.h
Generated by
1.9.4