Arduino IDE环境下WeMoS D1mini引脚定义和映射
🌻在开发过程中,我们必须了解各GPIO在上层是怎么定义的,才能心中有数,合理调用IO口。
- 📌原理图文档
链接:https://pan.baidu.com/s/1b_QjB8Lwr1xTc07O4G45DA
提取码:974n
- 📖引脚映射关系
#define PIN_WIRE_SDA (4)
#define PIN_WIRE_SCL (5)
static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL;
#define LED_BUILTIN 2 //板载LED灯
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 RX = 3;
static const uint8_t TX = 1;