User Tools

Site Tools

한국어

logicpython:cubloc_api:heapw

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

logicpython:cubloc_api:heapw [2026/04/10 02:06] – created - external edit 127.0.0.1logicpython:cubloc_api:heapw [2026/04/10 02:37] (current) – removed mfranklin
Line 1: Line 1:
-====== HeapW ====== 
- 
-Write one byte into the simulated 55 KiB SRAM heap. 
- 
-===== Syntax ===== 
- 
-<code python> 
-from cubloc import HeapW 
- 
-HeapW(address: int, data: int) 
-</code> 
- 
-===== Parameters ===== 
- 
-  * **address**: ''Heap address'' (0 to 56319). 
-  * **data**: Byte value to store (0 to 255). 
- 
-===== Exceptions ===== 
- 
-  * [[https://docs.micropython.org/en/latest/library/builtins.html#TypeError|TypeError]]: ''address'' or ''data'' is not an integer. 
-  * [[https://docs.micropython.org/en/latest/library/builtins.html#ValueError|ValueError]]: ''address'' or ''data'' is out of range. 
- 
-===== Example ===== 
- 
-<code python> 
-from cubloc import HeapW 
- 
-# Example usage 
-HeapW(1, 1) 
-</code> 
- 
-===== Related APIs ===== 
- 
-  * [[logicpython:cubloc_api:eeread|EERead]] 
-  * [[logicpython:cubloc_api:eewrite|EEWrite]] 
-  * [[logicpython:cubloc_api:heap|Heap]] 
-  * [[logicpython:cubloc_api:heapclear|HeapClear]] 
-  * [[logicpython:cubloc_api:hread|HRead]] 
  
logicpython/cubloc_api/heapw.1775786798.txt.gz · Last modified: by 127.0.0.1