Ligne 55 : |
Ligne 55 : |
| | | |
| == Code de test == | | == Code de test == |
| + | |
| + | <syntaxhighlight lang="python"> |
| + | MicroPython v1.11-473-g86090de on 2019-11-15; PYBv1.1 with STM32F405RG |
| + | Type "help()" for more information. |
| + | >>> |
| + | >>> from pyb import Servo |
| + | >>> s1 = Servo(1) |
| + | >>> s1.speed( +90 ) |
| + | >>> s1.speed( -90 ) |
| + | >>> s1.speed( -40 ) |
| + | >>> s1.speed( -10 ) |
| + | >>> s1.speed( 0 ) |
| + | </syntaxhighlight> |
| | | |
| == Où acheter == | | == Où acheter == |