Modifications

Sauter à la navigation Sauter à la recherche
4 octets supprimés ,  19 février 2022 à 20:17
Ligne 165 : Ligne 165 :  
[[Fichier:ENG-CANSAT-PICO-THONNY-10.png|480px]]
 
[[Fichier:ENG-CANSAT-PICO-THONNY-10.png|480px]]
   −
Le Plotter reprend les données numériques affichée dans session REPL.  
+
The Plotter catch the numeric values sends/print in the REPL/Shell and displays it in the chart.  
   −
Lorsque la ligne contient exclusivement une valeur numérique, celle-ci est reprise dans le plotter.
+
Only lines containing numeric values are used by the plotter.
   −
Dans l'exemple suivant, nommé {{fname|demo2.py}}, utilise une fonction gamma pour faire pulser la LED de statut sur le GPIO. C'est qu'une progression proportionnel du signal PWM ne produit pas une évolution proportionnelle de la luminosité de la LED (voir livre [https://www.editions-eni.fr/livre/micropython-et-pyboard-python-sur-microcontroleur-de-la-prise-en-main-a-l-utilisation-avancee-9782409022906 MicroPython et Pyboard, Edition ENI], in French).
+
On the following example, named {{fname|demo2.py}}, we do use the gamma function to make the LED pulsing in a more natural way. Indeed, a progressive PWM signal increase would not offers a proportional luminosity increase on the LED (voir livre [https://www.editions-eni.fr/livre/micropython-et-pyboard-python-sur-microcontroleur-de-la-prise-en-main-a-l-utilisation-avancee-9782409022906 MicroPython et Pyboard, Edition ENI], in French).
   −
La correction gamma permet de corriger cet inconvénient de non proportionnalité.
+
We do use the {{fname|gamma()}} function to rectify the apparent proportionality between the PWM and emitted light.
    
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
Ligne 194 : Ligne 194 :  
</syntaxhighlight>
 
</syntaxhighlight>
   −
Ce qui produit le résultat suivant dans Thonny.
+
Which produce the following results in Thonny.
    
La valeur numérique produite dans la session REPL est également reproduite dans le Plotter.
 
La valeur numérique produite dans la session REPL est également reproduite dans le Plotter.
29 917

modifications

Menu de navigation