Complete the code to declare a variable stored in Flash memory.
const char message[] [1] = "Hello";
The PROGMEM keyword tells the compiler to store the variable in Flash memory.
Complete the code to declare a variable stored in SRAM.
[1] int counter = 0;
The static keyword declares a variable stored in SRAM with persistent value inside the function or file.
Fix the error in the code to correctly declare a variable in EEPROM.
uint8_t [1] eeprom_var;The EEMEM keyword is used to place variables in EEPROM memory.
Fill both blanks to create a dictionary of variable types and their memory sections.
const char* memory_map[] = {"Flash", [1], "SRAM", [2];Flash memory uses PROGMEM and SRAM variables often use static for persistence.
Fill all three blanks to complete the code that reads a byte from EEPROM and stores it in SRAM.
uint8_t [2] EEMEM; uint8_t [1] = eeprom_read_byte((uint8_t*)[3]);
data_sram stores the byte in SRAM, data_eeprom is the EEPROM variable, and &data_eeprom is the address passed to eeprom_read_byte.