Modifications

Sauter à la navigation Sauter à la recherche
Ligne 263 : Ligne 263 :  
{{dbox-orange|Don't forget to update the radio frequency '''FREQ''' and the '''ENCRYPTION_KEY''' encryption key. }}
 
{{dbox-orange|Don't forget to update the radio frequency '''FREQ''' and the '''ENCRYPTION_KEY''' encryption key. }}
    +
=== Creating ressources ===
 
Then we create the needed buses resources to access the various sensor.
 
Then we create the needed buses resources to access the various sensor.
   Ligne 285 : Ligne 286 :  
At the end of initialization section, we do creates the instances for the analog reading (the TMP36, named {{fname|adc}}) and LED controling (named {{fname|led}}).
 
At the end of initialization section, we do creates the instances for the analog reading (the TMP36, named {{fname|adc}}) and LED controling (named {{fname|led}}).
   −
<syntaxhighlight lang="python"> # TMP36 analog pin
+
<syntaxhighlight lang="python"># TMP36 analog pin
 
adc = ADC(Pin(26))
 
adc = ADC(Pin(26))
 
# Onboard LED
 
# Onboard LED
 
led = Pin(25, Pin.OUT)
 
led = Pin(25, Pin.OUT)
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
=== Information logging ===
    
Just before the main loop, the script print the essential data.
 
Just before the main loop, the script print the essential data.
29 917

modifications

Menu de navigation