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édente | |||
| start:arduino:a4998:doc [2026/10/19 17:39] – [Exemple Raspberry] admin | start:arduino:a4998:doc [2026/10/19 17:41] (Version actuelle) – [Exemple Raspberry] admin | ||
|---|---|---|---|
| Ligne 266: | Ligne 266: | ||
| [[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/pages/start/arduino/a4998/doc.txt · Dernière modification : de admin
