pinpong adc class

ADC Class

Constructor

Creates and initializes an ADC (Analog-to-Digital Converter) to get analog data.

adc = ADC(board, Pin(board, Pin.A0))

Methods

adc.read()

Reads the analog value from the ADC. For example,

brightness = adc.read()