start:arduino:a4998:doc
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| start:arduino:a4998:doc [2024/01/30 17:45] – [Configuration Step/MicroStepping] gerardadmin | start:arduino:a4998:doc [2026/10/19 17:41] (Version actuelle) – [Exemple Raspberry] admin | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ======== A4998 Doc ======== | ======== A4998 Doc ======== | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | |||
| + | [[start: | ||
| Ligne 135: | Ligne 140: | ||
| < | < | ||
| - | == Exemple Arduino == | + | ===== Exemple Arduino |
| Comment raccorder et utiliser votre jouet avec un Arduino Uno | Comment raccorder et utiliser votre jouet avec un Arduino Uno | ||
| Ligne 259: | Ligne 264: | ||
| < | < | ||
| </ | </ | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | |||
| + | <code python Exemple0001.py> | ||
| + | from time import sleep | ||
| + | import RPi.GPIO as GPIO | ||
| + | |||
| + | GPIO.setmode(GPIO.BCM) | ||
| + | GPIO.setup(20, | ||
| + | GPIO.setup(21, | ||
| + | |||
| + | GPIO.output(21, | ||
| + | for x in range(200): | ||
| + | GPIO.output(20, | ||
| + | sleep(0.005) | ||
| + | GPIO.output(20, | ||
| + | sleep(0.005) | ||
| + | |||
| + | sleep(0.5) | ||
| + | |||
| + | GPIO.output(21, | ||
| + | for x in range(200): | ||
| + | GPIO.output(20, | ||
| + | sleep(0.005) | ||
| + | GPIO.output(20, | ||
| + | sleep(0.005) | ||
| + | |||
| + | </ | ||
| Nous ne l' | Nous ne l' | ||
/home/chanteri/www/fablab37110/data/attic/start/arduino/a4998/doc.1706633106.txt.gz · Dernière modification : de gerardadmin
