Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (14 sloc) 435 Bytes
// Simple extension to the EEPROM library
// Tim Hirzel
// All code released under
// Creative Commons Attribution-Noncommercial-Share Alike 3.0
#include <avr/EEPROM.h>
float readFloat(int address) {
float out;
eeprom_read_block((void *) &out, (unsigned char *) address ,4 );
return out;
}
void writeFloat(float value, int address) {
eeprom_write_block((void *) &value, (unsigned char *) address ,4);
}
// END EEPROM Float
Something went wrong with that request. Please try again.