Main Page | Modules | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

User Interface based on formatted text


Files

file  otTextUI.h
 User Interface based on formatted text.

Modules

 Version History

Data Structures

union  TUI_Variant
struct  TUI_Variable
struct  TUI_Panel
class  otTextUI
 User Interface based on formatted text. More...
class  otTextUI
 User Interface based on formatted text. More...

Typedefs

typedef U16(* keyScanMethod )(bool)
 Function definition for keyboard scan.
typedef TUI_Variant TUI_Variant
 Container for variable address.
typedef TUI_Variable TUI_Variable
 Panel's variable.
typedef TUI_Panel TUI_Panel
 Panel property.

Detailed Description

This library allows you to create screens to be displayed on a 20x4 character LCD. During the drawing you can specify where to display a variable, or other object according to a specific format. In practice, a complete arrangement of the various objects is already defined in the source itself. Not blocking except in input of fields. This is an example how to define a panel on LCD:
    const SDRAM_DATA char * mnuStart =
    	" SHARKDUINO+        "
        " ------------------ "
        " TEXT USER INTERFACE"
        " WHAT YOU SEE IS .. "
        " IS WHAT YOU GET .. "
        "  ON TEXT LCD 20x4  "
    	" ------------------ "
    	"|   Rev.   1.0.0   |"
    	"|     May 2021     |"
    	"|  (C) 2020-2021   |"
    	"| OFFICINA  TURINI |"
    	"|    All Rights    |"
    	"|     Reserved     |"
    	"| ---------------- |"
    	"| SN:   ########## |"  // # Mark for numeric field
        "| Code: $$$$$$$$$$ |"  // $ Mark for string field
        "| Option: $$$$$$$$ |"  // $ Mark a menu field
        "| Level:  $$$$$$$$ |"  // $ Mark of a progress bar
    	"| Date: ####/##/## |"  // # Mark 3 different variables
        "| Time:   ##:##:## |"  // # Mark 3 different variables
    	"| $$$$$$$$$$$$$$$$ |"  // $ Mark for context help. Is rotating
    	" ------------------ ";
    
Dependency:
LCD library
Malloc - Memory management
Printf - Print formatted data to stdout
Memory library
String library
Math Library
TIMER - Procedure for timer usage

Typedef Documentation

typedef U16(* keyScanMethod)(bool)
 

typedef struct TUI_Panel TUI_Panel
 

typedef struct TUI_Variable TUI_Variable
 

typedef union TUI_Variant TUI_Variant
 

footer

otStudio - Library Reference - (C) 2020-25 Officina Turini, All Rights Reserved
Document built with Doxygen 1.4.0