User Tools

Site Tools

한국어

logicpython:cubloc_api:tadin

Differences

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

Link to this comparison view

logicpython:cubloc_api:tadin [2026/04/10 02:06] – created - external edit 127.0.0.1logicpython:cubloc_api:tadin [2026/04/10 02:36] (current) – removed mfranklin
Line 1: Line 1:
-====== TADIn ====== 
- 
-Read the average of 10 ''ADIn'' samples from the specified ADC ''channel''. 
- 
-===== Syntax ===== 
- 
-<code python> 
-from cubloc import TADIn 
- 
-TADIn(channel: int) 
-</code> 
- 
-===== Parameters ===== 
- 
-  * **channel**: ADC ''channel'' number (0 to 2), mapped to GP26, GP27, and GP28. 
- 
-===== Return Value ===== 
- 
-Returns the integer average of 10 consecutive ''ADIn'' readings. 
- 
-===== 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 TADIn 
- 
-# Example usage 
-result = TADIn(0) 
-print(result) 
-</code> 
- 
-===== Related APIs ===== 
- 
-  * [[logicpython:cubloc_api:adin|ADIn]] 
-  * [[logicpython:cubloc_api:hadin|HADIn]] 
  
logicpython/cubloc_api/tadin.1775786799.txt.gz · Last modified: by 127.0.0.1