I have a temperature and light logging program, which I want to store collected data on an eeprom. My C knowledge is minimal and I was wondering what the best way to do this is!
the data I plan to store :-
Samples UL Temp Total UL Light Total UL Min Temp I Max Temp I Min Light I Max Light I
This will be in 2 tables, the first will contain data for a day period (15 minute intervals currently), the second will contain a record for each day of the year.
Each record update will require the data reading and totals/max/min updating, since the EEPROM routines use bytes I was wondering what the best way to do this is?
Create a structure and use sizeof and a byte pointer to read each byte / write it, I have no problem working out where to write it (assembler experience) just not sure of the best and most efficient way to do this.
The data above is Unsigned Longs and Integers!
my EEPROM routines are
I am more concerned with the mechanics as I am not to sure with pointers, structures etc in C, and without being able to trace the program and watch variables it makes it difficult!
Thanks for any help