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

float x,y;

int main(void)
{
	eeprom_update_float((float*) 0, (float) 3.14);		//update von 3.14 beginnend ab Speicherzelle 0
	eeprom_update_float((float*) 4, (float) 5.233);		//update von 5.233 beginnend ab Speicherzelle 4
	
	x = eeprom_read_float((const float*) 0);			//read float ab Speicherzelle 0
	y = eeprom_read_float((const float*) 4);			//read float ab Speicherzelle 4
	
	while(1)
	{
		asm ("NOP");
	}
}