lcd_setcg

Registers user character pattern

void lcd_setcg (
    uint8_t chr,       /* User character code */
    uint8_t n,         /* Number of characters to be changed */
    const uint8_t* pat /* Pointer to the character pattern */
);

Arguments

chr
Specifies the first user character code to be changed.
n
Specifies number of characters to be changed.
pat
Pointer to the character pattern as n by 8 byte array.

Description

Registers the pattern of user characters. The character pattern is written to the CGRAM of the LCDC and it reflects to the characters in display. When the LCD module has dual LCDC, the pattern data is registered into both LCDCs.

QuickInfo

Available when _USE_CGRAM == 1.

Return