SmoothProgress 1.0.0
Displays smooth progress bars on a character based LCD displays for Arduino
BarStyleBatV.h
1#ifndef BAR_STYLE_BAT_V
2#define BAR_STYLE_BAT_V
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 smooth vertical progress bar representing a battery
9// 1 pixel frame, no margin, 1 pixel offsets
10
11#include <barstyle.h>
12
13#ifdef BAR_STYLE_BAT_V_IN_PROGMEM
14static const PROGMEM struct barstyle
15#else
16static const struct barstyle
17#endif
18
19barStyleBatV = {
20 {
21 { // bottomANDmask
22 0b11111,
23 0b11111,
24 0b11111,
25 0b11111,
26 0b11111,
27 0b11111,
28 0b11111,
29 0b11111},
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 0b01110,
45 0b01110,
46 0b01110,
47 0b01110,
48 0b01110,
49 0b01110},
50 { // topORmask
51 0b01110,
52 0b11111,
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, // BootmOffset
81 2, // TopOffset
82 1 // direction...
83};
84
85
86#endif // !BAR_STYLE_BAT_V
Structure holding the bit-masks and other data used for drawing the edges of the progress bar that de...
Definition: barstyle.h:40