TheCodersCorner.com items tagged with library.
Your embedded menu project can use Java-style resource bundles . You define translated strings in an directory, refer to those strings from your menu definition or C++ code, and the code generator creates C++ headers for the selected language. We enable the support by adding an directory within the project that has at least a properties file named ...
Embedded Java for Raspberry PI and Linux works slightly differently to the C++ project creator in that it is a starter project with a webserver and JavaFX UI built in. After project creation you then go about configuring the project how you like, and the designer will keep the menu callbacks up-to-date in the controller, the menu definitions that make up...
Most display plugins can be customized using TcThemeBuilder, a utility class that allows you to simply configure fonts, colors, spacing, grids and icons. To the left you can see cool-blue theme with a multi-column grid layout. Grids allow for multi-column menus by breaking rows up into multiple columns. You can configure graphical settings at the default level, or even override settings...
Setting up IO devices has been made much easier as of V2.2 of the designer software. you can now directly edit the IO expander configurations directly within tcMenu. When we discuss IO devices we are talking about objects that refer to either device pins, or any other device such as I2C expanders or shift registers from the IoAbstraction library ....
Menu Manager makes it easy to load from and save values to EEPROM between runs. Each menu item can optionally have a storage point in the EEPROM area (-1 / 0xffff means not stored). Any items that have a valid EEPROM address will be persisted upon calling the function on menuMgr, and similarly, will be read back by calling ....
You can secure both sub-menu items and remote connections using an . In summary, when an is present on any attempt to show a secure sub menu will result in a dialog asking for the pin; only proceeding to display the sub menu if the pin matches the on in . In addition, all remote/IoT connections will only be...
IoAbstraction contains a very simple collection that is relatively lightweight and works on a wide range of boards. It is a btree list that provides ordering and list storage. It works on anything from Arduino Uno upwards! It's memory usage is very configurable, and the way it resizes arrays is also configurable too. You can set the initial size if you...
Circular buffer provides an easy way to interact with events that take place on another thread or in an interrupt, it is not very efficient when used on a single thread because it uses atomic operations to ensure consistency of the buffer. It is an advanced collection for use by users that understand threading and writing interrupt safe code. There are...
TcMenu allows you to take over the display from the renderer very easily, and once you own the display, you will be called back at regular intervals by the rendering class. During the time that you've taken over the display or presented a dashboard, you're responsible for the user input and rendering. Please note that you should never update the screen...
contains the functions to manage menu items, there is a global instance of this class called on Arduino and mbed boards. Here we present the most commonly used features, check out the reference docs for more details. There are a lot of iteration helper functions that can be used to navigate through menu structures. These are described further down...