mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
9 lines
245 B
Python
9 lines
245 B
Python
# ADC Internal Channels Example
|
|
#
|
|
# This example shows how to read internal ADC channels.
|
|
|
|
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()))
|