Modifications

Sauter à la navigation Sauter à la recherche
36 octets ajoutés ,  8 décembre 2022 à 17:03
Ligne 67 : Ligne 67 :  
#
 
#
 
from machine import ADC, Pin
 
from machine import ADC, Pin
 +
import time
    
adc = ADC(Pin(26))
 
adc = ADC(Pin(26))
Ligne 74 : Ligne 75 :  
     temp = (mv-500)/10
 
     temp = (mv-500)/10
 
     print( 'Temp: %5.2f °C, Voltage: %4i mV' % (temp,mv) )
 
     print( 'Temp: %5.2f °C, Voltage: %4i mV' % (temp,mv) )
 +
    time.sleep( 0.100 )
 
</syntaxhighlight>
 
</syntaxhighlight>
  
29 879

modifications

Menu de navigation