ESP8266编程资源荟萃
ESP8266官方支持的VI库http://sine.ni.com/images/products/us/pws_l.jpg
泰国LabVIEW极客分享的开源ESP8266 VI库
编译器官网PWS板说明
其VI库与官方推荐的PWS板件兼容!
编译器官方出品的PWS板入门指南
WeMos D1板Arduino板级支持包下载链接:
http://arduino.esp8266.com/stable/package_esp8266com_index.json
https://img.alicdn.com/imgextra/i1/2200785223210/O1CN01g13fwt1ZaDuYujm7T_!!2200785223210.png
WeMos D1串口驱动与资料官网:
https://wiki.wemos.cc/products:d1:d1 泰国LabVIEW极客针对含ESP8266板子PWS的相关VI库,可通过下面选项设置通过Arduino IDE来下载板级支持包:
https://raw.githubusercontent.com/QWaveSystems/PWS/master/package/versions/package_qwavesyspws_index.json
美国编译器官方制造的PWS板子,VIPM支持的VI库链接:
vipm://qwavesystems_tsxperts_programmable_wireless_stamp_(pws)_home_student
或
vipm://qwavesystems_tsxperts_programmable_wireless_stamp_(pws)_standard
PWS板件使用用户指南:
https://tsxperts.com/wp-content/uploads/2014/03/Programmable-Wireless-Stamp-PWS-Specifications.pdf
本帖最后由 Scadao 于 2019-10-27 22:29 编辑
WeMos D1板原理图和ESP8266规格书见附件
本帖最后由 Scadao 于 2019-10-29 10:28 编辑
WeMos D1 GPIO引脚定义
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照片:https://img-blog.csdn.net/20171126194024961?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGdqMTIzeGo=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast