/* eeprom_04.c ATmega88 @ 1MHz */ 
#include <avr/io.h> #include <avr/eeprom.h>

uint8_t byte_buffer[7] = {1,2,'a',4,5,'g','x'}; // Array byte_buffer mit 7 Werten
	
int main(void)
{
	// schreibe Datenblock von 7 Bytes
	eeprom_update_block((const void*)byte_buffer, (void*)0, (size_t)7);
	
	// lese Datenblock von 7 Bytes
	eeprom_read_block((void*)byte_buffer, (const void*)0, (size_t)7);
	
	while(1)
	{
		asm ("NOP");
	}
}