-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from Spirik/appearance
`GEMAppearance` struct; methods for traversing; disable AltSerialGraphicLCD version by default; Todo List example
- Loading branch information
Showing
17 changed files
with
2,554 additions
and
514 deletions.
There are no files selected for viewing
517 changes: 517 additions & 0 deletions
517
examples/AdafruitGFX/Example-06_Todo-List/Example-06_Todo-List.ino
Large diffs are not rendered by default.
Oops, something went wrong.
485 changes: 485 additions & 0 deletions
485
examples/AltSerialGraphicLCD/Example-06_Todo-List/Example-06_Todo-List.ino
Large diffs are not rendered by default.
Oops, something went wrong.
478 changes: 478 additions & 0 deletions
478
examples/U8g2/Example-06_Todo-List/Example-06_Todo-List.ino
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
GEMAppearance - struct for storing visual settings of GEM library. | ||
GEM (a.k.a. Good Enough Menu) - Arduino library for creation of graphic multi-level menu with | ||
editable menu items, such as variables (supports int, byte, float, double, bool, char[17] data types) | ||
and option selects. User-defined callback function can be specified to invoke when menu item is saved. | ||
Supports buttons that can invoke user-defined actions and create action-specific | ||
context, which can have its own enter (setup) and exit callbacks as well as loop function. | ||
Supports: | ||
- AltSerialGraphicLCD library by Jon Green (http://www.jasspa.com/serialGLCD.html); | ||
- U8g2 library by olikraus (https://github.com/olikraus/U8g2_Arduino); | ||
- Adafruit GFX library by Adafruit (https://github.com/adafruit/Adafruit-GFX-Library). | ||
For documentation visit: | ||
https://github.com/Spirik/GEM | ||
Copyright (c) 2018-2023 Alexander 'Spirik' Spiridonov | ||
This file is part of GEM library. | ||
This library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation; either | ||
version 3 of the License, or (at your option) any later version. | ||
This library is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public License | ||
along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef HEADER_GEMAPPEARANCE | ||
#define HEADER_GEMAPPEARANCE | ||
|
||
// Declaration of GEMAppearance type | ||
struct GEMAppearance { | ||
byte menuPointerType; | ||
byte menuItemsPerScreen; | ||
byte menuItemHeight; | ||
byte menuPageScreenTopOffset; | ||
byte menuValuesLeftOffset; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.