28.8.1.3.1 Code
Copy-paste the following code to your user application:
uint8_t page_data[EEPROM_PAGE_SIZE];
eeprom_emulator_read_page(0, page_data);
page_data[0] = !page_data[0];
port_pin_set_output_level(LED_0_PIN, page_data[0]);
eeprom_emulator_write_page(0, page_data);
eeprom_emulator_commit_page_buffer();
page_data[1]=0x1;
eeprom_emulator_write_page(0, page_data);
while
(
true
) {
}