projets:2019:stagerubanled
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 | ||
projets:2019:stagerubanled [2019/11/02 18:53] – christian.jacolot | projets:2019:stagerubanled [2024/04/16 22:26] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 180: | Ligne 180: | ||
Fichier de présentation | Fichier de présentation | ||
+ | * Module NodeMCU ESP32 | ||
* ESP 32, arduino IDE, blink | * ESP 32, arduino IDE, blink | ||
* une LED RGB, connexion à l' | * une LED RGB, connexion à l' | ||
Ligne 192: | Ligne 193: | ||
Code ESP32 pour piloter une LED: | Code ESP32 pour piloter une LED: | ||
< | < | ||
+ | /* | ||
+ | * ESP32 LED Blink Example | ||
+ | * Board Module NodeMCU ESP32 | ||
+ | | ||
+ | * ON Board LED GPIO 2 | ||
+ | */ | ||
- | </ | + | #define LED 2 |
+ | void setup() { | ||
+ | // Set pin mode | ||
+ | pinMode(LED, | ||
+ | } | ||
+ | |||
+ | void loop() { | ||
+ | delay(500); | ||
+ | digitalWrite(LED, | ||
+ | delay(500); | ||
+ | digitalWrite(LED, | ||
+ | } | ||
+ | </ | ||
projets/2019/stagerubanled.1572717216.txt.gz · Dernière modification : 2024/04/16 22:27 (modification externe)