Example explanation-02-adc_read_int_channel reads the internal ADC channel

# ADC Internal Channels Example
# 读取内部ADC通道例程
#
# 这个例程展示了如何读取内部ADC通道

import time, pyb

adc  = pyb.ADCAll(12)
print("VREF = %.1fv VREF = %.1fv Temp = %d" % (adc.read_core_vref(), adc.read_core_vbat(), adc.read_core_temp()))

results matching ""

    No results matching ""