Hello. I've connected a 4x3 matrix keyboard with one pin only at A0 pin. Due to voltage drop problems I've decided to make a "calibration" routine. The user is going to press every button once and the programm is going to save 2 values (one for the low limit and one for the high limit) in an array. These values I want to save them in EEPROM and if sometimes the keyboard doesn't work properly then the user can repeat the above proccess. But the problem that the values I'm getting are between 400 and 1000. So I can't use the standard EEPROM library. Can anyone help me? I've installed EEPROMex but I can't retrieve data.
Have you tried the "eeprom write anything" library?
But the problem that the values I'm getting are between 400 and 1000. So I can't use the standard EEPROM library.
Why? Is it some sort of magic numbers?
Is it because write function writes bytes only? Write it per bytes, or make some derivated function, or use avr/eeprom library.