de_mblock_a_arduino
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 | ||
| de_mblock_a_arduino [2024/09/21 17:37] – mistert | de_mblock_a_arduino [2025/09/15 12:04] (Version actuelle) – mistert2 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| **De MBlock à Arduino** | **De MBlock à Arduino** | ||
| - | {{ https:// | + | {{ https:// |
| {{ https:// | {{ https:// | ||
| - | {{ https:// | + | {{ https:// |
| **Feu avec gestion piéton** | **Feu avec gestion piéton** | ||
| - | {{ https:// | + | {{ https:// |
| - | {{https:// | + | {{https:// |
| {{https:// | {{https:// | ||
| Ligne 45: | Ligne 45: | ||
| digitalWrite(FEU_PIETON, | digitalWrite(FEU_PIETON, | ||
| appel_pieton = 0; | appel_pieton = 0; | ||
| + | temps_s -=2; | ||
| } else { | } else { | ||
| | | ||
| Ligne 51: | Ligne 52: | ||
| } | } | ||
| - | void setup() { | + | void setup() { |
| pinMode(BOUTON_PIETON, | pinMode(BOUTON_PIETON, | ||
| attachInterrupt(digitalPinToInterrupt(BOUTON_PIETON), | attachInterrupt(digitalPinToInterrupt(BOUTON_PIETON), | ||
de_mblock_a_arduino.1726940223.txt.gz · Dernière modification : de mistert
