/** * @brief EEPROM Demo * @param None * @retval None */ void EEPROM_demo (void) { EEPROM_SetHint(); EepromFeature = 0; EepromTestNb = 0; EEPROM_Show_Feature(EepromFeature++); while (1) { if(CheckForUserInput() > 0) { if(EepromFeature < EEPROM_FEATURES_NUM) { EEPROM_Show_Feature(EepromFeature++); } else { return; } } HAL_Delay(100); } }
/** * @brief EEPROM Demo * @param None * @retval None */ void EEPROM_demo (void) { EEPROM_SetHint(); EepromFeature = 0; EepromTestNb = 0; /* Select EEPROM Component */ BSP_EEPROM_SelectDevice(EepromSelected[EepromTestNb++]); EEPROM_Show_Feature(EepromFeature++); while (1) { if(CheckForUserInput() > 0) { if(EepromFeature < EEPROM_FEATURES_NUM) { EEPROM_Show_Feature(EepromFeature++); } else { return; } if(EepromTestNb < EEPROM_TEST_NB) { /* Select another EEPROM */ BSP_LCD_SetTextColor(LCD_COLOR_BLACK); BSP_LCD_DisplayStringAt(0, 205, (uint8_t *)"Press Key push-button", CENTER_MODE); BSP_LCD_DisplayStringAt(0, 220, (uint8_t *)"to select other EEPROM", CENTER_MODE); BSP_EEPROM_SelectDevice(EepromSelected[EepromTestNb++]); /* Restart example feature */ EepromFeature = 0; } } HAL_Delay(100); } }