{"id":2932,"date":"2025-07-26T15:47:04","date_gmt":"2025-07-26T14:47:04","guid":{"rendered":"https:\/\/workboot.fr\/ciela\/?page_id=2932"},"modified":"2025-12-03T16:01:21","modified_gmt":"2025-12-03T15:01:21","slug":"rpi1","status":"publish","type":"page","link":"https:\/\/workboot.fr\/ciela\/rpi1\/","title":{"rendered":"RPI_1 GPIO shell bash"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/11\/Raspberry.jpeg\"><img loading=\"lazy\" decoding=\"async\" width=\"200\" height=\"200\" src=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/11\/Raspberry.jpeg\" alt=\"\" class=\"wp-image-4920\" style=\"width:68px;height:auto\" srcset=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/11\/Raspberry.jpeg 200w, https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/11\/Raspberry-150x150.jpeg 150w\" sizes=\"auto, (max-width: 200px) 100vw, 200px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">\ud83d\udd52 : 3 h maximum<\/p>\n\n\n\n<nav aria-label=\"Table des mati\u00e8res\" class=\"wp-block-table-of-contents\"><ol><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#prerequis\">Pr\u00e9requis:<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#but\">But:<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#repertoire-du-travail\">R\u00e9pertoire du travail:<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#la-commande-pinout\">La commande pinout<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#piloter-une-led-rouge\">Piloter une LED ROUGE<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#cablage\">C\u00e2blage<\/a><ol><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#calcul-de-la-resistance-de-limitation\">Calcul de la r\u00e9sistance de limitation<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#on-va-piloter-la-led-en-ligne-de-commande\">on va piloter la led en ligne de commande<\/a><\/li><\/ol><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#utiliser-shell-bash-pour-realiser-des-scripts\">Utiliser shell bash pour r\u00e9aliser des scripts<\/a><ol><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#code-bash-shell-blinkgpio17-sh\">code bash shell blinkgpio17.sh<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#rendre-executable-et-tester-blinkgio17-sh\">rendre ex\u00e9cutable et tester blinkgio17.sh<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#quelle-est-la-frequence-de-clignotement-de-la-led\">quelle est la fr\u00e9quence de clignotement de la LED?<\/a><\/li><\/ol><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#ajouter-une-led-verte-sur-votre-plaque-d-essais-sur-gpio27\">Ajouter une LED verte sur votre plaque d&rsquo;essais sur GPIO27<\/a><ol><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#proposer-un-schema-et-un-cablage-et-le-calcul-de-la-resistance-de-limitation-pour-la-led-verte-utiliser-fritzing\">Proposer un sch\u00e9ma et un c\u00e2blage, et le calcul de la r\u00e9sistance de limitation pour la led verte. (utiliser Fritzing)<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#proposer-la-ligne-commande-qui-va-allumer-la-led-verte\">Proposer la ligne commande qui va allumer la led verte<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#donner-un-shell-bash-script-qui-va-faire-alterner-les-2-leds-a-la-frequence-de-0-1-hertz\">Donner un shell bash script qui va faire alterner les 2 leds \u00e0 la fr\u00e9quence de 0.1 Hertz.<\/a><\/li><\/ol><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#entree-et-sortie\">Entr\u00e9e et Sortie <\/a><ol><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#identifier-la-resistance-limitation-de-courant\">Identifier la r\u00e9sistance limitation de courant <\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#on-cable-ici-un-ils-interrupteur-a-lame-souple\">On c\u00e2ble ici un ILS (interrupteur \u00e0 lame souple)<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#si-il-n-y-a-pas-d-aimant-donner-l-etat-logique-sur-gpio27\">si il n&rsquo;y a pas d&rsquo;aimant donner l&rsquo;\u00e9tat logique sur GPIO27<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#on-approche-l-aimant-de-l-ils-quel-est-l-etat-logique-sur-gpio27\">on approche l&rsquo;aimant de l&rsquo;ils quel est l&rsquo;\u00e9tat logique sur GPIO27<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#donner-la-commande-sous-linux-pour-lire-l-etat-de-gpio27\">Donner la commande sous linux pour lire l\u2019\u00e9tat de GPIO27<\/a><\/li><\/ol><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#justifier-la-presence-de-la-resistance-de-rappel-bas-pull-down\">Justifier la pr\u00e9sence de la r\u00e9sistance de rappel bas (pull down)<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#code-pour-piloter-la-led-avec-l-aimant-sur-ils\">Code pour piloter la LED avec l&rsquo;aimant (sur ILS)<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#utilisons-la-resistance-de-rappel-haut\">Utilisons la r\u00e9sistance de rappel haut <\/a><ol><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#donner-le-schema-de-cablage-avec-fritzing-avec-les-modifications\">Donner le sch\u00e9ma de c\u00e2blage  avec Fritzing avec les modifications<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#donner-l-etat-de-gpio27-si-il-y-a-l-aimant\">Donner l&rsquo;etat de GPIO27 si il y a l&rsquo;aimant.<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#donner-l-etat-de-gpio27-si-l-y-n-a-plus-d-aimant\">Donner l&rsquo;\u00e9tat de GPIO27 si l y n&rsquo;a plus d&rsquo;aimant.  <\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#utilisation-d-une-resistance-de-pull-up-interne\">Utilisation d&rsquo;une r\u00e9sistance de pull up interne<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#code-pour-piloter-la-led-avec-l-aimant-sans-la-resistance-de-rappel-externe\">Code pour piloter la led avec l&rsquo;aimant sans la r\u00e9sistance de rappel externe.<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#rendre-ce-code-executable-et-tester\">Rendre ce code ex\u00e9cutable , et tester<\/a><\/li><\/ol><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/#conclure-sur-le-developpement-de-projet-en-shell-bash\">Conclure sur le d\u00e9veloppement de projet  en Shell bash<\/a><\/li><\/ol><\/nav>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"prerequis\">Pr\u00e9requis:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>cours <a href=\"https:\/\/workboot.fr\/ciela\/raspberry-pi-2\/\">Raspberry Pi<\/a><\/li>\n\n\n\n<li>cours <a href=\"https:\/\/workboot.fr\/ciela\/libgpiod\/\">libgpiod<\/a><\/li>\n\n\n\n<li>Avoir fait <a href=\"https:\/\/workboot.fr\/ciela\/rpi_0-installation\/\">RPI_0 <\/a>et disposer d&rsquo;un Raspberry PI OS64  avec ssh<\/li>\n\n\n\n<li>Savoir utiliser une plaque d&rsquo;essais ,et c\u00e2bler des LED de couleurs.<\/li>\n\n\n\n<li>Utilisation de <a href=\"https:\/\/workboot.fr\/ciela\/fritzing\/\">fritzing<\/a> pour les sch\u00e9mas et plans  de c\u00e2blage<\/li>\n\n\n\n<li>C\u00e2bler un interrupteur, un relais REED ou ILS interrupteur \u00e0 lame souple et son AIMANT<\/li>\n\n\n\n<li>Pull UP et Pull Down  , R\u00e9sistance de rappel haut , et r\u00e9sistance de rappel bas , Externe et Interne <\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"but\">But:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Mettre en oeuvre un code pilotant les GPIO en Shell Bash et ligne de commande<\/li>\n\n\n\n<li>Estimation de la valeur de la resistance de limitation de courant dans une led<\/li>\n\n\n\n<li>Utilisation de PULL UP \/ DOWN sur GPIO , externe et interne<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"repertoire-du-travail\">R\u00e9pertoire du travail:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">~\/Works\/RPI_1<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"les-gpio-en-ligne-de-commande-sous-raspi-os-64\">Les GPIO en ligne de commande sous RASPI OS  64<\/h1>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright size-full is-resized\"><a href=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/12\/Connecteur.png\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"441\" src=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/12\/Connecteur.png\" alt=\"\" class=\"wp-image-5608\" style=\"aspect-ratio:1.360553600304385;width:351px;height:auto\" srcset=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/12\/Connecteur.png 600w, https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/12\/Connecteur-300x221.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><figcaption class=\"wp-element-caption\">Brochage du connecteur RPI (J8)<\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Les&nbsp;<strong>GPIO<\/strong>&nbsp;(General Purpose Input\/Output) du&nbsp;<strong>Raspberry Pi<\/strong>&nbsp;sont des broches num\u00e9riques programmables qui permettent d&rsquo;interagir avec des composants \u00e9lectroniques externes. Elles peuvent \u00eatre configur\u00e9es en entr\u00e9e (pour lire un signal, comme un bouton-poussoir) ou en sortie (pour envoyer un signal, comme allumer une LED).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"caracteristiques-principales\"><strong>Caract\u00e9ristiques principales :<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Broches num\u00e9riques<\/strong>&nbsp;: Fonctionnent en 3,3V (ne supportent pas le 5V en entr\u00e9e sans pr\u00e9cautions).<\/li>\n\n\n\n<li><strong>Configurables<\/strong>&nbsp;: En entr\u00e9e (input) ou en sortie (output) via des commandes logicielles.<\/li>\n\n\n\n<li><strong>Protocoles support\u00e9s<\/strong>&nbsp;: Certaines broches g\u00e8rent des protocoles comme&nbsp;<strong>I2C, SPI, UART<\/strong>.<\/li>\n\n\n\n<li><strong>PWM (Pulse Width Modulation)<\/strong>&nbsp;: Certaines broches permettent de g\u00e9n\u00e9rer un signal PWM pour contr\u00f4ler des moteurs ou des LEDs.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"utilisations-courantes\"><strong>Utilisations courantes :<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Contr\u00f4ler des LEDs, des moteurs ou des relais.<\/li>\n\n\n\n<li>Lire des capteurs (temp\u00e9rature, humidit\u00e9, boutons, etc.).<\/li>\n\n\n\n<li>Communiquer avec d&rsquo;autres appareils via I2C\/SPI.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"exemple-de-broches-gpio-modele-40-broches-rpi3-4\"><strong>Exemple de broches GPIO (mod\u00e8le 40 broches, RPI3\/4 :<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Broches 3,3V et 5V<\/strong>&nbsp;: Alimentation.<\/li>\n\n\n\n<li><strong>Broches GND<\/strong>&nbsp;: Masse (ground).<\/li>\n\n\n\n<li><strong>Broches GPIO num\u00e9rot\u00e9es<\/strong>&nbsp;(ex: GPIO2, GPIO17, etc.).<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u26a0\ufe0f&nbsp;<strong>Attention<\/strong>&nbsp;: Il faut toujours utiliser <mark style=\"background-color:rgba(0, 0, 0, 0);color:#cf2e2e\" class=\"has-inline-color\">des r\u00e9sistances de limitation de couran<\/mark>t pour \u00e9viter d&rsquo;endommager le Raspberry Pi.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ces broches sont contr\u00f4lables via des langages comme&nbsp;<strong>Python<\/strong>&nbsp;(biblioth\u00e8que&nbsp;<code>RPi.GPIO<\/code>&nbsp;ou&nbsp;<code>gpiozero<\/code>),&nbsp;<strong>C<\/strong>, ou des scripts shell.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"la-commande-pinout\">La commande pinout<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/07\/pinout.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"836\" src=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/07\/pinout-1024x836.png\" alt=\"\" class=\"wp-image-2991\" srcset=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/07\/pinout-1024x836.png 1024w, https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/07\/pinout-300x245.png 300w, https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/07\/pinout-768x627.png 768w, https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/07\/pinout.png 1031w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"utiliser-les-gpio-avec-libgpiod\"> Utiliser les GPIO, avec libgpiod<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"piloter-une-led-rouge\">Piloter une LED ROUGE<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">cours sur les GPIO du Raspberry Pi avec <a href=\"https:\/\/workboot.fr\/ciela\/libgpiod\/\">libgpiod<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Pour d\u00e9couvrir les gpio , on va utiliser une plaque d&rsquo;essai , une led rouge et une r\u00e9sistance de limitation pour la tension de 3,3V<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"cablage\">C\u00e2blage<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Rep\u00e8rer l&rsquo;anode et la cathode de la LED<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">la ligne du haut sera au 3,3V (on prend l&rsquo;habitude de mettre les alimentations , le 0V  ligne en bas fil bleu et 3,3V ici le +3,3V)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Le fil jaune ,signal de commande GPIO17 sur l&rsquo;anode la cathode au 0V (masse, terre..) a travers la r\u00e9sistance de limitation de courant.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/07\/Gpio17_LED.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"750\" src=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/07\/Gpio17_LED-1024x750.png\" alt=\"\" class=\"wp-image-2964\" srcset=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/07\/Gpio17_LED-1024x750.png 1024w, https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/07\/Gpio17_LED-300x220.png 300w, https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/07\/Gpio17_LED-768x563.png 768w, https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/07\/Gpio17_LED.png 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Sch\u00e9ma LED ROUGE GPIO17<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"calcul-de-la-resistance-de-limitation\">Calcul de la r\u00e9sistance de limitation<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">on va apprendre \u00e0 estimer la valeur de la r\u00e9sistance de limitation de courant de la LED<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">La patte la plus courte est la Cathode , K ,<em>\u00ab\u00a0K\u00a0\u00bb vient de l\u2019allemand \u00ab\u00a0Kathode\u00a0\u00bb, et son usage persiste en \u00e9lectronique pour \u00e9viter des ambigu\u00eft\u00e9s.<\/em><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/07\/diode_symbol.png\"><img loading=\"lazy\" decoding=\"async\" width=\"278\" height=\"181\" src=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/07\/diode_symbol.png\" alt=\"\" class=\"wp-image-2975\" style=\"aspect-ratio:1.5360287108170245;width:170px;height:auto\"\/><\/a><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/07\/LED.png\"><img loading=\"lazy\" decoding=\"async\" width=\"180\" height=\"199\" src=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/07\/LED.png\" alt=\"\" class=\"wp-image-2970\"\/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Anode la plus longue (la plus), si les pattes sont coup\u00e9es &#8230; le m\u00e9plat va permettre de rep\u00e9rer l&rsquo;anode a droite la cathode \u00e0 gauche<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">un moyen mn\u00e9motechnique  : on dit plus facilement l&rsquo;alphabet de A \u00e0 K et pas de K \u00e0 A  , pour retenir le sens du courant<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">les caract\u00e9ristiques des diodes LED <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/07\/caracLED.png\"><img loading=\"lazy\" decoding=\"async\" width=\"530\" height=\"623\" src=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/07\/caracLED.png\" alt=\"\" class=\"wp-image-2971\" style=\"aspect-ratio:0.8508124076809453;width:256px;height:auto\" srcset=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/07\/caracLED.png 530w, https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/07\/caracLED-255x300.png 255w\" sizes=\"auto, (max-width: 530px) 100vw, 530px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Calculer la r\u00e9sistance de limitation du courant en fonction de la couleur<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.digikey.fr\/fr\/resources\/conversion-calculators\/conversion-calculator-resistor-color-code\">https:\/\/www.digikey.fr\/fr\/resources\/conversion-calculators\/conversion-calculator-resistor-color-code<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">pour avoir la valeur de votre r\u00e9sistor.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Pour la led rouge par exemple le <mark style=\"background-color:rgba(0, 0, 0, 0);color:#cf2e2e\" class=\"has-inline-color\">point de fonctionnement<\/mark> pour une bonne luminosit\u00e9 est de <mark style=\"background-color:rgba(0, 0, 0, 0);color:#cf2e2e\" class=\"has-inline-color\">1.93 V pour 20 mA<\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">R=U\/I&nbsp;&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">U=3.3-1.93<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Donner R<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">remarque: Les r\u00e9sistances misent \u00e0 disposition sont bien pour toutes les couleurs.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"on-va-piloter-la-led-en-ligne-de-commande\">on va piloter la led en ligne de commande<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># allumer la led\ngpioset gpiochip0 17=1\n# eteindre la led\ngpioset gpiochip0 17=0<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"utiliser-shell-bash-pour-realiser-des-scripts\">Utiliser shell bash pour r\u00e9aliser des scripts<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">l&rsquo;avantage de shell bash,  est qu&rsquo;ils sont vite r\u00e9alis\u00e9s , et pratique pour tester rapidement un montage. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Mais il faut pr\u00e9f\u00e9rer  un langage comme le C\/C++ , voir le python .<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"code-bash-shell-blinkgpio17-sh\">code bash shell blinkgpio17.sh<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">r\u00e9pertoire: shellbash code: blinkgpio17.sh<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\n# Clignotement LED sur GPIO17\nwhile true; # boucle sans fin\ndo\n  gpioset gpiochip0 17=1 &amp;&amp; sleep 1  #allume la led durant 1 seconde\n  gpioset gpiochip0 17=0 &amp;&amp; sleep 1  #eteint la led durant 1 seconde\ndone<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"rendre-executable-et-tester-blinkgio17-sh\">rendre ex\u00e9cutable et tester blinkgio17.sh<\/h4>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"quelle-est-la-frequence-de-clignotement-de-la-led\">quelle est la fr\u00e9quence de clignotement de la LED?<\/h4>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"ajouter-une-led-verte-sur-votre-plaque-d-essais-sur-gpio27\">Ajouter une LED verte sur votre plaque d&rsquo;essais sur GPIO27<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Pour faire les c\u00e2blages il est pr\u00e9f\u00e9rable d&rsquo;\u00e9teindre vos Raspberry Pi , pour les arr\u00eater , sudo halt et d\u00e9brancher quand il n y a plus de signe d&rsquo;activiter.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Pour valider vos acquis pr\u00e9c\u00e9dent, vous aller c\u00e2bler une LED verte en justifiant vos choix.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"proposer-un-schema-et-un-cablage-et-le-calcul-de-la-resistance-de-limitation-pour-la-led-verte-utiliser-fritzing\">Proposer un sch\u00e9ma et un c\u00e2blage, et le calcul de la r\u00e9sistance de limitation pour la led verte. (utiliser <a href=\"https:\/\/workboot.fr\/ciela\/fritzing\/\">Fritzing<\/a>)<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">La led verte sera sur GPIO27 , on garde la rouge pr\u00e9c\u00e9dente sur GPIO17<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"proposer-la-ligne-commande-qui-va-allumer-la-led-verte\">Proposer la ligne commande qui va allumer la led verte<\/h4>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"donner-un-shell-bash-script-qui-va-faire-alterner-les-2-leds-a-la-frequence-de-0-1-hertz\">Donner un shell bash script qui va faire alterner les 2 leds \u00e0 la fr\u00e9quence de 0.1 Hertz.<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">r\u00e9pertoire: deuxleds  , code : alterne2.sh<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"entree-et-sortie\">Entr\u00e9e et Sortie <\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">on va introduire ici le relais <a href=\"https:\/\/workboot.fr\/ciela\/relais-ils\/\">ILS<\/a> , interrupteur \u00e0 lame souple  , qui va nous servir de capteur , pr\u00e9sence d&rsquo;un champ magn\u00e9tique (aimant)  ou non .<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">L&rsquo;\u00e9tat de l&rsquo;ILS sera lu sur GPIO27  (sur notre c\u00e2blage  GPIO27 lit 0 si aucun aimant et 1 si aimant !)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On garde une LED ROUGE avec sa r\u00e9sistance de limitation de courant sur GPIO17<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/07\/reed_led.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"738\" src=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/07\/reed_led-1024x738.png\" alt=\"\" class=\"wp-image-3041\" style=\"width:1024px;height:auto\" srcset=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/07\/reed_led-1024x738.png 1024w, https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/07\/reed_led-300x216.png 300w, https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/07\/reed_led-768x553.png 768w, https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/07\/reed_led.png 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Sch\u00e9ma ILS et LED ROUGE, GPIO27 et GPIO17<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"identifier-la-resistance-limitation-de-courant\">Identifier la r\u00e9sistance limitation de courant <\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Justifier votre r\u00e9ponse<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"on-cable-ici-un-ils-interrupteur-a-lame-souple\">On c\u00e2ble ici un <a href=\"https:\/\/workboot.fr\/ciela\/relais-ils\/\">ILS<\/a> (interrupteur \u00e0 lame souple)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Il est associ\u00e9 \u00e0 un aimant <\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"si-il-n-y-a-pas-d-aimant-donner-l-etat-logique-sur-gpio27\">si il n&rsquo;y a pas d&rsquo;aimant donner l&rsquo;\u00e9tat logique sur GPIO27<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">pourquoi ?<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"on-approche-l-aimant-de-l-ils-quel-est-l-etat-logique-sur-gpio27\">on approche l&rsquo;aimant de l&rsquo;ils quel est l&rsquo;\u00e9tat logique sur GPIO27<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">pourquoi ?<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"donner-la-commande-sous-linux-pour-lire-l-etat-de-gpio27\">Donner la commande sous linux pour lire l\u2019\u00e9tat de GPIO27<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Utiliser cette commande pour confirmer avec aimant et sans <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"justifier-la-presence-de-la-resistance-de-rappel-bas-pull-down\">Justifier la pr\u00e9sence de la r\u00e9sistance de rappel bas (pull down)<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"code-pour-piloter-la-led-avec-l-aimant-sur-ils\">Code pour piloter la LED avec l&rsquo;aimant (sur ILS)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">R\u00e9pertoire: piloteled , code : piloteled.sh<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\n\n# Configuration\nLED_GPIO=\"17\"      # Broche BCM17 pour la LED\nILS_GPIO=\"27\"      # Broche BCM27 pour l'ILS\nCHIP=\"gpiochip0\"   # Chip GPIO par d\u00e9faut\n\n# Configurer la LED en sortie\ngpioset $CHIP $LED_GPIO=0  # Initialisation \u00e0 OFF\n\necho \"Monitoring ILS sur GPIO$ILS_GPIO -&gt; LED GPIO$LED_GPIO (Ctrl+C pour quitter)\"\n\n# Boucle principale\nwhile true; \ndo\n  # Lire l'\u00e9tat de l'ILS (sortie brute: \"1\" ou \"0\")\n  STATE=$(gpioget $CHIP $ILS_GPIO)\n  \n  # Inverser l'\u00e9tat pour la LED (car pull-up: 0=actif)\n  if &#91; \"$STATE\" = \"0\" ]; then\n    gpioset $CHIP $LED_GPIO=1  # LED ON\n  else\n    gpioset $CHIP $LED_GPIO=0  # LED OFF\n  fi\n  \n  sleep 0.1  # D\u00e9lai optionnel\ndone<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"utilisons-la-resistance-de-rappel-haut\">Utilisons la r\u00e9sistance de rappel haut <\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">on va modifier le c\u00e2blage, pour le  simplifier, ce qui ajoutera un peu plus de code..<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">enlevons la r\u00e9sistance de rappel externe bas, et mettons a la place notre ILS<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Donc on simplife le cablage , le cable rouge de l&rsquo;ILS disparait et la r\u00e9sistance externe aussi !<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"donner-le-schema-de-cablage-avec-fritzing-avec-les-modifications\">Donner le sch\u00e9ma de c\u00e2blage  avec <a href=\"https:\/\/workboot.fr\/ciela\/fritzing\/\">Fritzing<\/a> avec les modifications<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"donner-l-etat-de-gpio27-si-il-y-a-l-aimant\">Donner l&rsquo;etat de GPIO27 si il y a l&rsquo;aimant.<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">c&rsquo;est tr\u00e8s net ici, aucun doute possible !<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"donner-l-etat-de-gpio27-si-l-y-n-a-plus-d-aimant\">Donner l&rsquo;\u00e9tat de GPIO27 si l y n&rsquo;a plus d&rsquo;aimant.  <\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">attention &#8230; a priori la broche est en entr\u00e9e .. donc en haute imp\u00e9dance, et il n&rsquo;y a pas d\u2019\u00e9tat logique impos\u00e9.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ici c&rsquo;est une antenne!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"utilisation-d-une-resistance-de-pull-up-interne\">Utilisation d&rsquo;une r\u00e9sistance de pull up interne<\/h3>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/07\/GPIO_ZOOM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"251\" src=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/07\/GPIO_ZOOM.png\" alt=\"\" class=\"wp-image-3093\"\/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Dans le Data sheet du SOC <a href=\"https:\/\/workboot.fr\/ciela\/soc-bcm2835\/\">BCM2837 <\/a> on voit qu&rsquo;une r\u00e9sistance de rappel interne de 50 kO est int\u00e9gr\u00e9e pour chaque GPIO<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">La solution avec une commande la libgpiod :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gpioget --bias=pull-up gpiochip0 27<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>&#8211;bias=pull-up<\/strong> va ajouter sur l&rsquo;entr\u00e9e 27 une r\u00e9sistance interne de pull UP<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"code-pour-piloter-la-led-avec-l-aimant-sans-la-resistance-de-rappel-externe\">Code pour piloter la led avec l&rsquo;aimant sans la r\u00e9sistance de rappel externe.<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">R\u00e9pertoire: piloteled , code piloteledsr.sh<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\n\n# Configuration\nLED_GPIO=\"17\"      # Broche BCM17 pour la LED\nILS_GPIO=\"27\"      # Broche BCM27 pour l'ILS\nCHIP=\"gpiochip0\"   # Chip GPIO par d\u00e9faut\n\n# Configurer la LED en sortie\ngpioset $CHIP $LED_GPIO=0  # Initialisation \u00e0 OFF\n\necho \"Monitoring ILS sur GPIO$ILS_GPIO -&gt; LED GPIO$LED_GPIO (Ctrl+C pour quitter)\"\n\n# Boucle principale\nwhile true; do\n  # Lire l'\u00e9tat de l'ILS (sortie brute: \"1\" ou \"0\")\n  STATE=$(gpioget --bias=pull-up $CHIP $ILS_GPIO)\n  \n  # Inverser l'\u00e9tat pour la LED (car pull-up: 0=actif)\n  if &#91; \"$STATE\" = \"0\" ]; then\n    gpioset $CHIP $LED_GPIO=1  # LED ON\n  else\n    gpioset $CHIP $LED_GPIO=0  # LED OFF\n  fi\n  \n  sleep 0.1  # D\u00e9lai optionnel\ndone<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"rendre-ce-code-executable-et-tester\">Rendre ce code ex\u00e9cutable , et tester<\/h3>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conclure-sur-le-developpement-de-projet-en-shell-bash\">Conclure sur le d\u00e9veloppement de projet  en Shell bash<\/h2>\n","protected":false},"excerpt":{"rendered":"<p>\ud83d\udd52 : 3 h maximum Pr\u00e9requis: But: R\u00e9pertoire du travail: ~\/Works\/RPI_1 Les GPIO en ligne de commande sous RASPI OS 64 Les&nbsp;GPIO&nbsp;(General Purpose Input\/Output) du&nbsp;Raspberry Pi&nbsp;sont des broches num\u00e9riques programmables [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","_uag_custom_page_level_css":"","footnotes":""},"class_list":["post-2932","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>RPI_1 GPIO shell bash - workboot<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/workboot.fr\/ciela\/rpi1\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"RPI_1 GPIO shell bash - workboot\" \/>\n<meta property=\"og:description\" content=\"\ud83d\udd52 : 3 h maximum Pr\u00e9requis: But: R\u00e9pertoire du travail: ~\/Works\/RPI_1 Les GPIO en ligne de commande sous RASPI OS 64 Les&nbsp;GPIO&nbsp;(General Purpose Input\/Output) du&nbsp;Raspberry Pi&nbsp;sont des broches num\u00e9riques programmables [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/workboot.fr\/ciela\/rpi1\/\" \/>\n<meta property=\"og:site_name\" content=\"workboot\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-03T15:01:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/11\/Raspberry.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"200\" \/>\n\t<meta property=\"og:image:height\" content=\"200\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:label1\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data1\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/rpi1\\\/\",\"url\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/rpi1\\\/\",\"name\":\"RPI_1 GPIO shell bash - workboot\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/rpi1\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/rpi1\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/Raspberry.jpeg\",\"datePublished\":\"2025-07-26T14:47:04+00:00\",\"dateModified\":\"2025-12-03T15:01:21+00:00\",\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/workboot.fr\\\/ciela\\\/rpi1\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/rpi1\\\/#primaryimage\",\"url\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/Raspberry.jpeg\",\"contentUrl\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/Raspberry.jpeg\",\"width\":200,\"height\":200},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/#website\",\"url\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/\",\"name\":\"workboot\",\"description\":\"Open Source, Open Minds \",\"publisher\":{\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/#organization\",\"name\":\"workboot\",\"url\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/logo_ciel-dorian-1.png\",\"contentUrl\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/logo_ciel-dorian-1.png\",\"width\":1024,\"height\":950,\"caption\":\"workboot\"},\"image\":{\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"RPI_1 GPIO shell bash - workboot","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/workboot.fr\/ciela\/rpi1\/","og_locale":"fr_FR","og_type":"article","og_title":"RPI_1 GPIO shell bash - workboot","og_description":"\ud83d\udd52 : 3 h maximum Pr\u00e9requis: But: R\u00e9pertoire du travail: ~\/Works\/RPI_1 Les GPIO en ligne de commande sous RASPI OS 64 Les&nbsp;GPIO&nbsp;(General Purpose Input\/Output) du&nbsp;Raspberry Pi&nbsp;sont des broches num\u00e9riques programmables [&hellip;]","og_url":"https:\/\/workboot.fr\/ciela\/rpi1\/","og_site_name":"workboot","article_modified_time":"2025-12-03T15:01:21+00:00","og_image":[{"width":200,"height":200,"url":"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/11\/Raspberry.jpeg","type":"image\/jpeg"}],"twitter_misc":{"Dur\u00e9e de lecture estim\u00e9e":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/workboot.fr\/ciela\/rpi1\/","url":"https:\/\/workboot.fr\/ciela\/rpi1\/","name":"RPI_1 GPIO shell bash - workboot","isPartOf":{"@id":"https:\/\/workboot.fr\/ciela\/#website"},"primaryImageOfPage":{"@id":"https:\/\/workboot.fr\/ciela\/rpi1\/#primaryimage"},"image":{"@id":"https:\/\/workboot.fr\/ciela\/rpi1\/#primaryimage"},"thumbnailUrl":"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/11\/Raspberry.jpeg","datePublished":"2025-07-26T14:47:04+00:00","dateModified":"2025-12-03T15:01:21+00:00","inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/workboot.fr\/ciela\/rpi1\/"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/workboot.fr\/ciela\/rpi1\/#primaryimage","url":"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/11\/Raspberry.jpeg","contentUrl":"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/11\/Raspberry.jpeg","width":200,"height":200},{"@type":"WebSite","@id":"https:\/\/workboot.fr\/ciela\/#website","url":"https:\/\/workboot.fr\/ciela\/","name":"workboot","description":"Open Source, Open Minds ","publisher":{"@id":"https:\/\/workboot.fr\/ciela\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/workboot.fr\/ciela\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/workboot.fr\/ciela\/#organization","name":"workboot","url":"https:\/\/workboot.fr\/ciela\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/workboot.fr\/ciela\/#\/schema\/logo\/image\/","url":"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/05\/logo_ciel-dorian-1.png","contentUrl":"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/05\/logo_ciel-dorian-1.png","width":1024,"height":950,"caption":"workboot"},"image":{"@id":"https:\/\/workboot.fr\/ciela\/#\/schema\/logo\/image\/"}}]}},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"admin","author_link":"https:\/\/workboot.fr\/ciela\/author\/admin\/"},"uagb_comment_info":0,"uagb_excerpt":"\ud83d\udd52 : 3 h maximum Pr\u00e9requis: But: R\u00e9pertoire du travail: ~\/Works\/RPI_1 Les GPIO en ligne de commande sous RASPI OS 64 Les&nbsp;GPIO&nbsp;(General Purpose Input\/Output) du&nbsp;Raspberry Pi&nbsp;sont des broches num\u00e9riques programmables [&hellip;]","_links":{"self":[{"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/pages\/2932","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/comments?post=2932"}],"version-history":[{"count":79,"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/pages\/2932\/revisions"}],"predecessor-version":[{"id":5609,"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/pages\/2932\/revisions\/5609"}],"wp:attachment":[{"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/media?parent=2932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}