SmoothProgress 1.0.0
Displays smooth progress bars on a character based LCD displays for Arduino
BarStyleV1.h
1#ifndef BAR_STYLE_V_1
2#define BAR_STYLE_V_1
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, square edges
10
11#include <barstyle.h>
12
13#ifdef BAR_STYLE_V_1_IN_PROGMEM
14static const PROGMEM struct barstyle
15#else
16static const struct barstyle
17#endif
18
19barStyleV1 = {
20 {
21 { // bottomANDmask
22 0b00100,
23 0b00100,
24 0b00100,
25 0b00100,
26 0b00100,
27 0b00100,
28 0b00000,
29 0b00000},
30 { // bottomORmask
31 0b10001,
32 0b10001,
33 0b10001,
34 0b10001,
35 0b10001,
36 0b10001,
37 0b10001,
38 0b11111}
39 },
40 {
41 { // topANDmask
42 0b00000,
43 0b00000,
44 0b00100,
45 0b00100,
46 0b00100,
47 0b00100,
48 0b00100,
49 0b00100},
50 { // topORmask
51 0b11111,
52 0b10001,
53 0b10001,
54 0b10001,
55 0b10001,
56 0b10001,
57 0b10001,
58 0b10001}
59 },
60 {
61 { // middleANDmask
62 0b00100,
63 0b00100,
64 0b00100,
65 0b00100,
66 0b00100,
67 0b00100,
68 0b00100,
69 0b00100},
70 { // middleORmask
71 0b10001,
72 0b10001,
73 0b10001,
74 0b10001,
75 0b10001,
76 0b10001,
77 0b10001,
78 0b10001}
79 },
80 2, // BottomOffset
81 2, // TopOffset
82 1 // orientation...
83};
84
85
86#endif // BAR_STYLE_V_1
Structure holding the bit-masks and other data used for drawing the edges of the progress bar that de...
Definition: barstyle.h:40