Modifications

Sauter à la navigation Sauter à la recherche
Aucun changement de taille ,  28 avril 2015 à 20:35
Ligne 34 : Ligne 34 :  
For this tutorial, we will use the {{fname|X1}} pin. Connect one end of the resistor de 100 Ohms to {{fname|X1}}, and the other end to the anode of the LED, which is the longer leg. Connect the cathode of the LED to ground.
 
For this tutorial, we will use the {{fname|X1}} pin. Connect one end of the resistor de 100 Ohms to {{fname|X1}}, and the other end to the anode of the LED, which is the longer leg. Connect the cathode of the LED to ground.
   −
[[Fichier:MicroPython-Hack-fading-01.png]]
+
{{MPImage|MicroPython-Hack-fading-01.png}}
    
By examining the Quick reference for the pyboard, we see that X1 is connected to channel 1 of timer 5 (TIM5 CH1). Therefore we will first create a Timer object for timer 5, then create a TimerChannel object for channel 1:
 
By examining the Quick reference for the pyboard, we see that X1 is connected to channel 1 of timer 5 (TIM5 CH1). Therefore we will first create a Timer object for timer 5, then create a TimerChannel object for channel 1:
29 917

modifications

Menu de navigation