The following sequence is a basic example to blink the “BLINK” string in blink all segments mode in Segment LCD1 Xplained Pro LCD glass.
slcd_disable();
xpro_lcd_clear_all();
/* Printing "BLINK" string on SLCD(used Character Mapping mode) */ xpro_lcd_show_text((const uint8_t *)"BLINK");
/* BCFG.MODE = 0 BCFG.FCS = 1 */
slcd_blink_get_config_defaults(&blink_config);
blink_config.blink_all_seg = true;
blink_config.fc = CONF_XPRO_LCD_BLINK_TIMER;
/* write the SLCD Blink configurations in the respective registers */
slcd_blink_set_config(&blink_config);
/* Set the frame counter configurations and enable it */
slcd_set_frame_counter(blink_config.fc,0,0x1);
slcd_enable_frame_counter(blink_config.fc);
slcd_enable();
/* Enable Blink mode */
slcd_enable_blink();