Memory

BlocklyProp reference for MEMORY blocks

Block availability varies by board type. microSD card slots are included on the Activity Board WX and Badge WX boards. A pad for a microSD card holder is included on the Project Board USB.


EEPROM read

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

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

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

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.


Memory store contact

Compatible only with Badge board types.

The Memory store contact block stores up to 128 characters of text to EEPROM memory.


Memory check contact

Compatible only with Badge board types.

The Memory check contact block checks to see if a string of text has already been stored in EEPROM memory.


Memory get contact

Compatible only with Badge board types.

The Memory get contact block retrieves text with a certain index number from EEPROM memory.


Memory count contacts

Compatible only with Badge board types.

The Memory count contacts block returns how many contacts are currently stored in EEPROM memory.


Memory erase contacts

Compatible only with Badge board types.

The Memory erase contacts block erases entire user portion of EEPROM memory by placing 255 in each location.


SD file open SD card

Available for the Activity Board WX, FLiP or Project Board USB, Badge WX, and Other board types

The SD file open block opens the specified file on the SD card. Filenames can be up to 8 characters long, and a 3 character extension such as .TXT is required.


SD file read/write

Available for the Activity Board WX, FLiP or Project Board USB, Badge WX, and Other board types

The SD file read/write block is used to read from, write to, or close the current file on the SD card.


SD file pointer

Available for the Activity Board WX, FLiP or Project Board USB, Badge WX, and Other board types

The SD file set block sets or retrieves the current file pointer (location in characters where reads or writes begin from).