====== ADIn ====== Read the raw digital 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 ===== * [[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 ===== from cubloc import ADIn # Example usage result = ADIn(0) print(result)