SmoothProgress 1.0.0
Displays smooth progress bars on a character based LCD displays for Arduino
BarStyleBAT.h
1#ifndef BAR_STYLE_BAT
2#define BAR_STYLE_BAT
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 horizontal progress bar representing a battery
9// 1 pixel frame, 1 pixel margin, 5 pixel offsets
10
11#include <barstyle.h>
12
13#ifdef BAR_STYLE_BAT_IN_PROGMEM
14static const PROGMEM struct barstyle
15#else
16static const struct barstyle
17#endif
18
19barStyleBat = {
20 {
21 { // lANDmask
22 0b00001,
23 0b00001,
24 0b00001,
25 0b00001,
26 0b00001,
27 0b00001,
28 0b00001,
29 0b00001},
30 { // leftORmask
31 0b00001,
32 0b00001,
33 0b00001,
34 0b00001,
35 0b00001,
36 0b00001,
37 0b00001,
38 0b00001},
39 },
40 {
41 { // rightANDmask
42 0b10000,
43 0b10000,
44 0b11100,
45 0b11100,
46 0b11100,
47 0b11100,
48 0b10000,
49 0b10000},
50 { // rightORmask
51 0b10000,
52 0b10000,
53 0b11100,
54 0b11100,
55 0b11100,
56 0b11100,
57 0b10000,
58 0b10000},
59 },
60 {
61 { // middleANDmask
62 0b00000,
63 0b00000,
64 0b11111,
65 0b11111,
66 0b11111,
67 0b11111,
68 0b00000,
69 0b00000},
70 { // middleORmask
71 0b11111,
72 0b00000,
73 0b00000,
74 0b00000,
75 0b00000,
76 0b00000,
77 0b00000,
78 0b11111},
79 },
80 5, // LeftOffset
81 5, // RightOffset
82 0 // direction...
83};
84
85
86#endif // !BAR_STYLE_BAT
Structure holding the bit-masks and other data used for drawing the edges of the progress bar that de...
Definition: barstyle.h:40