ESP8266和Arduino的引脚对应关系表

NodeMCU和Arduinod的管脚是有所不同的,具体见下表:
左侧为Arduino引脚,右侧为ESP8266对应引脚:

static const uint8_t D0   = 16;
static const uint8_t D1   = 5;
static const uint8_t D2   = 4;
static const uint8_t D3   = 0;
static const uint8_t D4   = 2;
static const uint8_t D5   = 14;
static const uint8_t D6   = 12;
static const uint8_t D7   = 13;
static const uint8_t D8   = 15;
static const uint8_t D9   = 3;
static const uint8_t D10  = 1;

附带一张NodeMCU的原理图供大家查看:
ESP8266和Arduino的引脚对应关系表_第1张图片
欢迎大家加入我自建的创客交流群,分享diy经验,一起学习,一起进步。群号:784939897,你也可以扫码加群ESP8266和Arduino的引脚对应关系表_第2张图片

你可能感兴趣的:(ESP8266)