* **data**: Integer, float, bytes, or bytearray value to write.
-
* **byteLength**: Number of bytes to write. Must be positive and remain within the EEPROM bounds. ''Float'' writes require 4. Bytes and bytearray writes use the first ''byteLength'' bytes.
-
-
===== Exceptions =====
-
-
* [[https://docs.micropython.org/en/latest/library/builtins.html#TypeError|TypeError]]: ''address'', ''data'', or ''byteLength'' is invalid.
-
* [[https://docs.micropython.org/en/latest/library/builtins.html#ValueError|ValueError]]: ''address'' or ''byteLength'' is out of range, the write would extend past ''address'' 4095, a float write was requested with a ''byteLength'' other than 4, a float is not representable as a 32-bit value, or ''byteLength'' exceeds the source bytes length.
-
-
===== Example =====
-
-
<code python>
-
from cubloc import EEWrite
-
-
# Example usage
-
EEWrite(1, 1, 1)
-
</code>
-
-
===== Related APIs =====
-
-
* [[logicpython:cubloc_api:eeread|EERead]]
-
* [[logicpython:cubloc_api:heap|Heap]]
-
* [[logicpython:cubloc_api:heapclear|HeapClear]]
-
* [[logicpython:cubloc_api:heapw|HeapW]]
-
* [[logicpython:cubloc_api:hread|HRead]]
logicpython/cubloc_api/eewrite.1775786798.txt.gz · Last modified: by 127.0.0.1