WeMos D1 GPIO引脚定义
2017-11-26 20:16
4957 查看
目录
目录WeMos D1
引脚
引脚定义库
实物图
WeMos D1
WeMos D1的外形与Arduino Uno很相似,但由于集成了ESP8266,因此引脚的定义相比Arduino也略有差异。引脚
WeMos D1包含:数字IO引脚11个。除了D0引脚外,其余引脚均支持
pwm、
I2C、
中断、
单总线。
模拟输入引脚1个(最大支持3.3v输入)。
可以看出,虽然外形与Arduino Uno很相似,但模拟引脚仅有1个。数字引脚(包括RX,TX)共有11个,不过其中10个引脚支持
pwm、
I2C、
中断、
单总线让人有点小吃惊。
需要注意的一点是:WeMos D1上数字引脚的一侧引脚数量远大于11个,这是因为该板上
D3与D15、
D4与D14、
D5与D13、
D6与D12、
D7与D11、
D9与板载LED它们两两之间是互通的。
具体引脚的定义可以参考我整理的引脚定义库。
引脚定义库
/* Name: pins_wemos_d1.h Created: 11/26/2017 11:36:44 AM Author: Landriesnidis -------------------------------------- Pin definition functions for WeMos D1 */ #ifndef Pins_WeMos_D1_h #define Pins_WeMos_D1_h static const uint8_t PIN_D0 = 3; //RX static const uint8_t PIN_D1 = 1; //TX static const uint8_t PIN_D2 = 16; static const uint8_t PIN_D3_D15 = 5; //SCL static const uint8_t PIN_D4_D14 = 4; //SDA static const uint8_t PIN_D5_D13 = 14; //SCK static const uint8_t PIN_D6_D12 = 12; //MISO static const uint8_t PIN_D7_D11 = 13; //MOSI static const uint8_t PIN_D8 = 0; static const uint8_t PIN_D9_LED = 2; //LED static const uint8_t PIN_D10 = 15; //SS static const uint8_t PIN_A0 = 17; static const uint8_t PIN_RX = 3; static const uint8_t PIN_TX = 1; static const uint8_t PIN_SCL = 5; static const uint8_t PIN_SDA = 4; static const uint8_t PIN_SCK = 114; static const uint8_t PIN_MISO = 12; static const uint8_t PIN_MOSI = 13; static const uint8_t PIN_SS = 15; static const uint8_t PIN_LED = 2; #endif /* Pins_WeMos_D1_h */
实物图
为确保不出乌龙,附上我的WeMos D1照片:相关文章推荐
- WeMos D1 GPIO引脚定义
- 香蕉派和树莓派的不同点及GPIO引脚定义
- RS232 (DB9) MAX232引脚定义
- 9针串口引脚定义 25针串口引脚定义
- SD卡引脚定义
- 笔记本eSATA与USB2.0接口共用插槽引脚定义
- GPIO复用引脚的释放及gpio-leds的注册
- USB引脚定义
- 串口并口引脚定义
- GPIO定义可参考方法
- VGA引脚定义(转)
- Arduino 000 — Arduino UNO R3 板子引脚定义
- MTK6735 5.1系统 Camera GPIO 引脚配置笔记
- SD卡引脚定义
- Linux系统下PORT端口引脚导出GPIO对应的序号关系
- 微处理器引脚定义
- 引脚定义
- RS232 DB9 公头 母头 串口引脚定义
- SIM卡的引脚定义
- 树莓派_GPIO引脚操作_wiringPi的安装与使用