User Tools

Site Tools

한국어

logicpython:cubloc_api:tadin

This is an old revision of the document!


TADIn

Read the average of 10 ADIn samples from the specified ADC channel.

Syntax

from cubloc import TADIn
 
TADIn(channel: int)

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

Example

from cubloc import TADIn
 
# Example usage
result = TADIn(0)
print(result)
logicpython/cubloc_api/tadin.1775786799.txt.gz · Last modified: by 127.0.0.1