User Tools

Site Tools

한국어

logicpython:cubloc_api:adin

This is an old revision of the document!


ADIn

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

Syntax

from cubloc import ADIn
 
ADIn(channel: int)

Parameters

  • channel: ADC channel number.

Return Value

Returns the read_u16() value exposed by the RP2 MicroPython runtime.

Exceptions

Example

from cubloc import ADIn
 
# Example usage
result = ADIn(0)
print(result)
logicpython/cubloc_api/adin.1778815389.txt.gz · Last modified: by mfranklin