Memory

BlocklyProp reference for EEPROM blocks

For Propeller Activity Board WX, Propeller FLiP,  or Other board types.  Not available for Badge or Scribbler Robot board types.

(The Badge board type has a different set of EEPROM blocks designed for a specific interactive application.)


EEPROM read

The EEPROM read block reads data  from the EEPROM memory on the Propeller Activity Board and saves it in a variable.

  1. Specify the kind of data to read—number, byte, or string— with the first dropdown.
  2. Insert a value block to provide the starting memory address, in the range of 0 to 7675.
  3. Choose a variable item to store the data retrieved.

Choose memory addresses carefully. Numbers take up 4 bytes of memory, a byte takes 1 byte of memory, and a string takes up 1 byte for each letter in the string plus 1 byte to indicate the end of the string (“Hello” would take 6 bytes of memory). The range used for address access by this block (0 to 7675) maps to the actual address range 32768 to 40443 in the Propeller Activity Board's upper EEPROM.


EEPROM write

The EEPROM write block writes data to the EEPROM memory on the Propeller Activity Board.

  1. Specify the kind of data—number, byte, or string— with the first dropdown.
  2. Insert a value or variable block containing the data to write to EEPROM. Be careful to match the kind of data with the inserted value, to avoid unexpected results:
    • with number, use any variable, value, number, or operator block that resolves to a number.
    • with byte, use any variable, value, number, or operator block that resolves to a number in the range 0-255. A single character will be stored as its ASCII equivalent.
    • with string, use any variable or value block containing a string.
  3. Provide the starting memory address with a value block, in the range of 0 to 7675.

Choose memory addresses carefully. Numbers take up 4 bytes of memory, a byte takes 1 byte of memory, and a string takes up 1 byte for each letter in the string plus 1 byte to indicate the end of the string (“Hello” would take 6 bytes of memory). The range used for address access by this block (0 to 7675) maps to the actual address range 32768 to 40443 in the Propeller Activity Board's upper EEPROM.