guys, do you know how to write negative value on eeprom.. could you give me some simple code/example?
guys, do you know how to write negative value on eeprom in a simple way? thx
Negative values are written the same way as any other values. It's all just bits, right?
There are code samples here: http://arduino.cc/en/Reference/EEPROM
Just cast it to an unsigned value:
char value = -121; EEPROM.write(address,(byte)value); value = (char) EEPROM.read(address);
Please don’t cross post.
Please do not cross-post. This wastes time and resources as people attempt to answer your question on multiple threads.