User Tools

Site Tools

한국어

logicpython:cubloc_api:hadin

Differences

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

Link to this comparison view

logicpython:cubloc_api:hadin [2026/04/10 02:06] – created - external edit 127.0.0.1logicpython:cubloc_api:hadin [2026/04/10 02:35] (current) – removed mfranklin
Line 1: Line 1:
-====== HADIn ====== 
- 
-Read the full MicroPython ADC value from the specified ADC ''channel''. 
- 
-===== Syntax ===== 
- 
-<code python> 
-from cubloc import HADIn 
- 
-HADIn(channel: int) 
-</code> 
- 
-===== Parameters ===== 
- 
-  * **channel**: ADC ''channel'' number (0 to 2), mapped to GP26, GP27, and GP28. 
- 
-===== Return Value ===== 
- 
-This implementation delegates directly to ''ADIn'' and returns the same result. Returns the read_u16() value exposed by the RP2 MicroPython runtime. 
- 
-===== Exceptions ===== 
- 
-  * [[https://docs.micropython.org/en/latest/library/builtins.html#TypeError|TypeError]]: ''channel'' is not an integer. 
-  * [[https://docs.micropython.org/en/latest/library/builtins.html#ValueError|ValueError]]: ''channel'' is outside the supported range. 
- 
-===== Example ===== 
- 
-<code python> 
-from cubloc import HADIn 
- 
-# Example usage 
-result = HADIn(0) 
-print(result) 
-</code> 
- 
-===== Related APIs ===== 
- 
-  * [[logicpython:cubloc_api:adin|ADIn]] 
-  * [[logicpython:cubloc_api:tadin|TADIn]] 
  
logicpython/cubloc_api/hadin.1775786798.txt.gz · Last modified: by 127.0.0.1