Modifications

Sauter à la navigation Sauter à la recherche
Ligne 25 : Ligne 25 :  
[[Fichier:ENG-CANSAT-PICO-MISSION1-AUTONOMOUS.jpg|150px]]
 
[[Fichier:ENG-CANSAT-PICO-MISSION1-AUTONOMOUS.jpg|150px]]
    +
Here is the content of {{fname|main.py}} script.
    +
<syntaxhighlight lang="python">
 +
from machine import Pin
 +
run = Pin( 22, Pin.IN, Pin.PULL_UP )
 +
if run.value() == 1:
 +
    import user # import & execute user.py file
 +
</syntaxhighlight>
    
{{ENG-CANSAT-PICO-TRAILER}}
 
{{ENG-CANSAT-PICO-TRAILER}}
29 917

modifications

Menu de navigation