Releases: Spirik/GEM
Releases · Spirik/GEM
1.6.0
1.5.4
1.5.3
1.5.2
AppContext
struct renamed toGEMContext
(with backwards compatibility with previous name);- New methods
::setDrawMenuCallback()
and::removeDrawMenuCallback()
for managing optional callback that is invoked at the end of::drawMenu()
call; - Method
::getCurrentAppearance()
made public; private
access specifiers changed toprotected
to make it possible to access internal fields and methods from within user-defined derived (inherited) classes, allowing to extend functionality of GEM;- Optional "Advanced Mode" introduced, disabled by default but can be enabled via
config.h
orGEM_ENABLE_ADVANCED_MODE
flag; when enabled some of the internal methods are madevirtual
to make it possible to override those methods in own sketch, allowing further customization and modification of GEM; more features of Advanced Mode may be added in the future; - Readme updated accordingly.
1.5.1
- Support for custom fonts via
::setFontBig()
and::setFontSmall()
methods of U8g2 and Adafruit GFX versions of GEM; - Support for UTF8 fonts for U8g2 version of GEM via
GEM_u8g2::enableUTF8()
method (only for menu titles and menu item labels); - Readme updated accordingly.
1.5.0
- Possible breaking change: AltSerialGraphicLCD version disabled by default, but can be enabled explicitly via
config.h
or build flagGEM_ENABLE_GLCD
; GEMAppearance
struct,::setAppearance()
methods added; ability to set appearance for menu pages individually and change it at a runtime;GEMPage::getMenuItem()
andGEMItem::getMenuItemNext()
methods made public for easy menu items traversing from the sketch;::getCurrentMenuPage()
,GEMPage::getCurrentMenuItem()
,GEMPage::getCurrentMenuItemIndex()
methods added to target currently selected menu item (can be useful for certain callback functions);GEMItem::setAdjustedASCIIOrder()
method added for more suitable order of characters when editing text variables in certain use cases;- Example 06: Todo List added;
- Readme updated accordingly.
1.4.7
- Ability to remove menu item from menu page via
GEMItem::remove()
method; - Ability to re-add menu item to menu page (same or different) via subsequent call to
GEMPage::addMenuItem()
method; - Passing additional parameters to
GEMPage::addMenuItem()
method allow to add menu item at a specified indexpos
out of total (total
set totrue
) or only visible (total
set tofalse
) items of the menu page; - Correctly handle attempts to add menu page to multiple parent menu pages (now it is possible to change parent menu page);
- Available constructor options clarified in Readme and examples;
- Readme updated accordingly.