TheCodersCorner.com items tagged with library.
Using the Native C++ fork of the Adafruit GFX library you can control an OLED display using UTF-8 fonts on a PicoSDK or mbed board directly. Right now it supports SSD1306 and SH1106 displays using both I2C and SPI. With the help of tcUnicode it can also display UTF-8 text. Using tcUnicode you can generate embedded fonts which can be...
We've added a new fluent menu builder to the library. This builder provides a more intuitive and readable way to construct menus, making it easier for developers to create complex menu structures without requiring the many static definitions of the past. We've added this builder because on most machines with moderate sized menus, the overhead of this method is relatively low....
Action menu items represent a menu item that does nothing more than run the callback when it is selected. There is no hard requirement for it to have a callback, but one without a callback would have no purpose. Type information for ActionMenuItem Class type: / in MenuItems.h Enum returned by is MENUTYPE_ACTION_VALUE This item is based on...
Runtime lists support the displaying of list based data, where each row can have a name and values. There are three types of list item: Firstly FLASH based items, these work similar to enum items as the items are predefined at compile time. You can build these in designer directly. Secondly there's the option to have RAM based values, where an...
Items of type submenu can hold another list of menu items; which are presented as children of this menu item. Depending on the renderer you are using, this will display similar to the main menu when selected. BackMenuItem is silently added during code generation, it is needed to provide the user a way to leave the submenu back to the main...
tcMenu supports Large numbers for editing, with values up to 12 digits in total, and it can optionally handle negative values too. The underlying storage is a bit packed BCD array. This makes for efficient storage and complete accuracy in all cases. However, you can convert to and from floating-point values for convenience when accuracy is not as important. Class types...
Scroll Choice menu items allow for a single choice from a list of choices. Unlike enum menu item the choices may not be known until runtime, and could change at any time. There are several ways that choices can be stored either in a fixed width memory character array, EEPROM fixed width array, or lastly using a custom callback for each...
Float items are useful for displaying the result of inexact calculations and are only supported for read only purposes. The issue with floating points is that they are inexact and unsuited uses where they are ticked by a rotary encoder. An example use of a float menu item would be the average temperature of many readings. Type information for FloatMenuItem Class...
Working with Analog Items An item that can represent an integer, fractional, or decimal numeric value that can be editable using a rotary encoder or touch scroll/slider control. Currently, the underlying value is a 16-bit unsigned integer value but the maximum range is from -32768 to +32767. This is because we can make it appear negative by providing a negative offset....
An item that represents a complex data type that needs to be edited a part at a time. The value is generally held in RAM and can usually be saved in EEPROM between sessions. These items take various forms on the embedded side, either an Ip Address, date, time or plain text. Time menu items allow for the editing of...