stamp.core
Class  EEPROM
java.lang.Object
  |
  +--stamp.core.EEPROM
- public class EEPROM
- extends Object
  
Use the EEPROM on the Javelin board for persistent storage.
 
| 
Method Summary | 
protected static byte | 
eeRead(int address)
 
            | 
protected static void | 
eeWrite(int address,
        byte data)
 
            | 
static byte | 
read(int address)
 
          Reads a byte from the EEPROM at the specified address. | 
static int | 
size()
 
          Returns the size of the EEPROM in bytes. | 
static void | 
write(int address,
      byte value)
 
          Writes a byte into the EEPROM at the specified address. | 
 
 
EEPROM
public EEPROM()
size
public static int size()
- Returns the size of the EEPROM in bytes. The size depends upon how much
 of the EEPROM is taken up with the Java code.
- Returns:
 - size of the available EEPROM space in bytes.
 
 
 
write
public static void write(int address,
                         byte value)
- Writes a byte into the EEPROM at the specified address.
- Parameters:
 address - the address to write the byte to.value - value to write.
 
 
read
public static byte read(int address)
- Reads a byte from the EEPROM at the specified address.
- Parameters:
 address - the address to read the byte from.- Returns:
 - the byte read from the EEPROM.
 
 
 
eeWrite
protected static void eeWrite(int address,
                              byte data)
eeRead
protected static byte eeRead(int address)