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:
+
== Le code ==
+
By examining the Quick reference for the pyboard, we see that X1 is connected to canal 1 (''channel 1'') du Timer 5 (noté ''TIM5 CH1'' sur le schéma).
+
+
{{MPImage|pybv10-pinout.jpg|640px}}
+
+
Therefore we will first create a Timer object for timer 5, then create a TimerChannel object for channel 1: