Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente | |||
| 
                    materiel:rpi:gpio:accueil [2016/12/05 19:24] resonance [Entreés]  | 
                
                    materiel:rpi:gpio:accueil [2018/05/15 16:16] (Version actuelle) resonance  | 
            ||
|---|---|---|---|
| Ligne 4: | Ligne 4: | ||
| + | ===== Ligne de commande ===== | ||
| + |   | ||
| + | |||
| + | |||
| + | sudo -i | ||
| + | |||
| + | Setup to control pin as output | ||
| + | |||
| + | Substitute 23 in the following commands for your GPIO number (GPIO, not pin number) | ||
| + | |||
| + | |||
| + | echo " | ||
| + | echo " | ||
| + | |||
| + | Control Output State | ||
| + | |||
| + | |||
| + | echo " | ||
| + | echo " | ||
| + | |||
| + | Setup to read pin as an input | ||
| + | |||
| + | Substitute 23 in the following commands for your GPIO number (GPIO, not pin number) | ||
| + | |||
| + | |||
| + | echo " | ||
| + | echo " | ||
| + | |||
| + | Read its state | ||
| + | |||
| + | |||
| + | cat / | ||
| + | |||
| + | To Release A Pin Afterwards | ||
| + | |||
| + | |||
| + | echo " | ||
| + | |||
| + | ===== Avec Python ===== | ||
| Avec la biblio RPI.gpio et la biblio gpiozero : | Avec la biblio RPI.gpio et la biblio gpiozero : | ||
| Here’s a list of devices which currently supported: | Here’s a list of devices which currently supported: | ||