lcd_put_bar

These functions draw high resolution graphical indicator in bargraph and point into a limited width of columns.

void lcd_put_bar (   /* Draw a bargraph */
    uint16_t val,    /* Bar length (value) */
    uint8_t width,   /* Display area (characters) */
    uint8_t chr      /* User character */
);
void lcd_put_point ( /* Draw a point indicator */
    uint16_t val,    /* Position */
    uint8_t width,   /* Display area (characters) */
    uint8_t chr      /* User character */
);

Arguments

val
Specifies the bar length from left end in range from 0 to _MAX_BAR, or point position between left end and right end in range from 0 to _MAX_BAR.
width
Specifies the width of drawing area in unit of character.
chr
User character code to be used for this indicator.

Description

The bar/point indicator is displayed at the current cursor position and the cursor moves the width of indicator.

Each indicator use two user characters from chr. The user character must not collide with the code being used by another functions. Additionally two user characters from _BASE_GRAPH are used in common by each indicator. Thus up to three indicators can be used simultaneously.

QuickInfo

The lcd_put_bar function is available when _USE_CGRAM == 1 and _USE_BAR == 1.

The lcd_put_point function is available when _USE_CGRAM == 1 and _USE_POINT == 1.

Return