User Tools

Site Tools

한국어

logicpython:cubloc_api:hadin

This is an old revision of the document!


HADIn

Read the full MicroPython ADC value from the specified ADC channel.

Syntax

from cubloc import HADIn
 
HADIn(channel: int)

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

Example

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