Piloter le GPIO de l’ESP8266 (Serveur Web) depuis Domoticz en TCP/IP sans fil

Bonjour j’ai utilisé ce script https://projetsdiy.fr/piloter-gpio-esp8266-web-serveur-domoticz-partie2/

j’ai rencontré un problème de compilation,

voici ce qu’il marque, je ne comprends pas que ça ne marche pas, j’ai pourtant prit ce code qui marche normalement.

Bonjour,

quand je compile ça me dit ça, je ne comprend pas

sketch_dec01a:17:29: error: ‘D1’ was not declared in this scope

const uint8_t GPIOPIN[5] = {D1,D5,D6,D7,D8}; // Led

^

sketch_dec01a:17:32: error: ‘D5’ was not declared in this scope

const uint8_t GPIOPIN[5] = {D1,D5,D6,D7,D8}; // Led

^

sketch_dec01a:17:35: error: ‘D6’ was not declared in this scope

const uint8_t GPIOPIN[5] = {D1,D5,D6,D7,D8}; // Led

^

sketch_dec01a:17:38: error: ‘D7’ was not declared in this scope

const uint8_t GPIOPIN[5] = {D1,D5,D6,D7,D8}; // Led

^

sketch_dec01a:17:41: error: ‘D8’ was not declared in this scope

const uint8_t GPIOPIN[5] = {D1,D5,D6,D7,D8}; // Led

^

sketch_dec01a:9:19: error: ‘D4’ was not declared in this scope

#define DHTPIN D4 // Broche du DHT / DHT Pin

^

C:\Users\marsf\Documents\Arduino\sketch_dec01a\sketch_dec01a.ino:19:9: note: in expansion of macro ‘DHTPIN’

DHT dht(DHTPIN, DHTTYPE);

^

C:\Users\marsf\Documents\Arduino\sketch_dec01a\sketch_dec01a.ino: In function ‘void updateGpio()’:

sketch_dec01a:36:13: error: ‘D1’ was not declared in this scope

int pin = D1;

^

sketch_dec01a:40:11: error: ‘D7’ was not declared in this scope

pin = D7;

^

sketch_dec01a:42:11: error: ‘D8’ was not declared in this scope

pin = D8;

^

C:\Users\marsf\Documents\Arduino\sketch_dec01a\sketch_dec01a.ino: In function ‘void setup()’:

sketch_dec01a:61:14: error: ‘D2’ was not declared in this scope

Wire.begin(D2,D3);

^

sketch_dec01a:61:17: error: ‘D3’ was not declared in this scope

Wire.begin(D2,D3);

^

exit status 1
‘D1’ was not declared in this scope

Bonjour,

Tu es sur que tu as déclaré la bonne carte (dans le menu outils) ?

j’ai essayé avec une autre carte et ça semble marcher, merci