Other Parts Discussed in Thread: HALCOGEN
As stated by Sunil Oak (I found a thread with this topic), Is his code enough to read and write from EEPROM? If not what must be included?
#define BLOCK_NUMBER 0x01
sint64 value = 0;
void main() {
TI_Fee_Init();
readValue();
// ...
while (1) {
if (/* value changed */) {
writeValue();
}
// ...
}
}
void readValue() {
TI_Fee_Read(BLOCK_NUMBER, 0, &value, 8);
}
void writeValue() {
TI_Fee_WriteAsync(BLOCK_NUMBER, &value);
}