The following sequence is a basic example to make the corresponding segments ON for the character ‘A’ in Segment LCD1 Xplained Pro LCD glass.
xpro_lcd_clear_all();
/* DEC=0, NSEG=3 */
slcd_character_map_set(0,3);
/* CMINDEX.CINDEX = 0, CMINDEX.SINDEX = 4 */ /* CMDATA = 0x07E4(‘A’), CMDMASK = 0xFF4002 */ slcd_character_write_data(0,4,0x07E4,0xFF4002);
/* wait for the character mapping write complete */ while (slcd_get_char_writing_status()) { };