Table of Contents

EERead

Read data from non-volatile memory.

This feature is supported only on models with built-in FRAM.

Syntax

from cubloc import EERead
 
EERead(address: int,
    byteLength: int, 
    returnType: type[int] | type[float] | type[bytes] | type[bytearray] = int)

Parameters

Return Value

Returns the data according to returnType as int, float, bytes, or bytearray.

Exceptions

Example

from cubloc import EERead
 
# Example usage
result = EERead(1, 1, int)
print(result)