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 [2026/10/19 17:35] – [Exemple Raspberry] admin | start:arduino:a4998:doc [2026/10/19 17:41] (Version actuelle) – [Exemple Raspberry] admin | ||
|---|---|---|---|
| Ligne 265: | Ligne 265: | ||
| </ | </ | ||
| - | [[https:// | + | [[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.1792424123.txt.gz · Dernière modification : de admin
