adc_read_int_channel.py

# Questo lavoro è concesso in licenza MIT.
# Copyright (c) 2013-2023 OpenMV LLC. Tutti i diritti riservati.
# https://github.com/openmv/openmv/blob/master/LICENSE
#
# Esempio di canali ADC interni
#
# Questo esempio mostra come leggere i canali ADC interni.

import pyb

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

results matching ""

    No results matching ""