-
Notifications
You must be signed in to change notification settings - Fork 52
/
LiquidMenu_config.h
86 lines (68 loc) · 2.16 KB
/
LiquidMenu_config.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
/**
@file
Configuration file for LiquidMenu library.
Contains global constants the configure the size of some of the arrays
used in the library, also configures the debugging messages.
*/
#pragma once
/*!
* @name "LiquidCrystal" libraries enumeration.
* These defines are used for determining the compiler messages.
* @{
*/
#define LiquidCrystal_LIBRARY (1)
#define LiquidCrystal_I2C_LIBRARY (2)
//!@}
// Select a "LiquidCrystal" library:
// ---------------------------------
/*!
* @name Select a "LiquidCrystal" library
* @{
*/
/*!
* @name Arduino's parallel "LiquidCrystal" library
* @{
*/
#define LIQUIDMENU_LIBRARY LiquidCrystal_LIBRARY
#include <LiquidCrystal.h>
#define DisplayClass LiquidCrystal
//!@}
/*!
* @name I2C library
* @see https://github.com/johnrickman/LiquidCrystal_I2C
* @{
*/
// #define LIQUIDMENU_LIBRARY LiquidCrystal_I2C_LIBRARY
// #include <LiquidCrystal_I2C.h>
// #define DisplayClass LiquidCrystal_I2C
//!@}
/*!
* @name Some other library
* @{
*/
// #include <LIBRARY_HEADER.h>
// #define DisplayClass LIBRARY_CONSTRUCTOR
//!@}
//!@}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/// Configures the number of available variables per line.
const uint8_t MAX_VARIABLES = 5; ///< @note Default: 5
/// Configures the number of available functions per line.
const uint8_t MAX_FUNCTIONS = 8; ///< @note Default: 8
/// Configures the number of available lines per screen.
const uint8_t MAX_LINES = 12; ///< @note Default: 12
/// Configures the number of available screens per menu.
const uint8_t MAX_SCREENS = 14; ///< @note Default: 14
/// Configures the number of available menus per menus system.
const uint8_t MAX_MENUS = 8; ///< @note Default: 8
/*!
* Enable/disable hiding the focus indicator.
*
* When enabled the focus indicator will disappear for one step after
* completing an iteration through the focusable lines. When disabled the focus
* indicator will go from the last focusable line directly to the first
* focusable line without disappearing (i.e. it will be always visible).
*/
#define LM_FOCUS_INDICATOR_GHOSTING true ///< @note Default: true
// Turns the debugging messages on or off.
#define LIQUIDMENU_DEBUG false ///< @note Default: false