Ligne 86 : |
Ligne 86 : |
| >>> h.halt()</nowiki> | | >>> h.halt()</nowiki> |
| | | |
− | Vous pouvez maintenant tester votre second pont-H avec les commandes suivantes: | + | Vous pouvez maintenant tester votre deuxieme pont-H avec les commandes suivantes: |
− | <nowiki>xx | + | <nowiki>>>> MOT2_PINS = ( pyb.Pin.board.X7, pyb.Pin.board.X8 ) |
− | </nowiki> | + | >>> MOT2_PWM = {'pin' : pyb.Pin.board.X4, 'timer' : 5, 'channel' : 4 } |
| + | >>> h2 = HBridge( MOT1_PINS, MOT1_PWM ) |
| + | >>> h2.forward() |
| + | >>> h2.backward() |
| + | >>> h2.halt()</nowiki> |
| | | |
| {{traduction}} | | {{traduction}} |