Use this function to output a bar on lcd. This function demands the following parameters:
GfxMode | TxtMode | Parameter | Beschreibung | Wert |
| | Mode | Direction of bar | Horizontal, Vertical |
| | Width | Dimension of bar | Zahl |
| | Height | Height of bar | Zahl |
| | Min | Minimum | Zahl |
| | Max | Maximum | Zahl |
| | Current | Current value | Zahl |
| | CChars | Number of used custom chars (resolution, >= 4) | Zahl |
| | CCharList | Custom chars 1-CChars | CustomChar |
| | FrameWidth | Width of bar frame | Zahl |
| | FrameBorder | Space between bar frame and bar content | Zahl |
| | XPos | X-position of upper left corner of bar on lcd | Zahl |
| | YPos | Y-position of upper left corner of analyzer on lcd | Zahl |
Its also possible to leave out the parameter
CCharList. If you do so the custom chars are used as they are stored in lcd memory (same order as stored in custom char file).
Example TxtMode:
%Format.Bar(Horizontal,20,0,20,10,4,
%LCD.CustomChar(0),
%LCD.CustomChar(1),
%LCD.CustomChar(2),
%LCD.CustomChar(3))
This function call outputs a bar calculated from the given values. The bar is displayed in horizontal direction, has a width of 20 chars, the minimum of this bar is 0, the maximum is 20 and the current value is 10.
In this case the custom chars indexed by 0-3 are used for displaying the bar.
Example GfxMode:
%Format.Bar(Horizontal,100,5,0,20,10,1,1,1,1)