Difference between revisions of "readEEPROM(which address)"

From pinHeck Wiki
Jump to: navigation, search
Line 1: Line 1:
Returns the 4 byte long value in the specified address.
+
Returns the 4 byte long value in the specified address. A long allows you to store a number between 0-4,294,967,295 (0x00000000 - 0xFFFFFFFF)
  
 
'''Example:'''
 
'''Example:'''

Revision as of 22:02, 21 September 2014

Returns the 4 byte long value in the specified address. A long allows you to store a number between 0-4,294,967,295 (0x00000000 - 0xFFFFFFFF)

Example:

x = readEEPROM(1024);

Gets the value from EEPROM location 1024.


As with writeEEPROM, you can read-write from locations 0-8191, though some are reserved by the system. See writeEEPROM(which address, what value) for more information.