資源簡介
Arduino-PZEM004T.zip,和平博覽會pzem-004t能源監(jiān)控器pzem 004t的Arduino通信庫,Arduino是一家開源軟硬件公司和制造商社區(qū)。Arduino始于21世紀初,深受電子制造商的歡迎,Arduino通過開源系統(tǒng)提供了很多靈活性。
代碼片段和文件信息
#include?“PZEM004T.h“
#define?PZEM_VOLTAGE?(uint8_t)0xB0
#define?RESP_VOLTAGE?(uint8_t)0xA0
#define?PZEM_CURRENT?(uint8_t)0xB1
#define?RESP_CURRENT?(uint8_t)0xA1
#define?PZEM_POWER???(uint8_t)0xB2
#define?RESP_POWER???(uint8_t)0xA2
#define?PZEM_ENERGY??(uint8_t)0xB3
#define?RESP_ENERGY??(uint8_t)0xA3
#define?PZEM_SET_ADDRESS?(uint8_t)0xB4
#define?RESP_SET_ADDRESS?(uint8_t)0xA4
#define?PZEM_POWER_ALARM?(uint8_t)0xB5
#define?RESP_POWER_ALARM?(uint8_t)0xA5
#define?RESPONSE_SIZE?sizeof(PZEMCommand)
#define?RESPONSE_DATA_SIZE?RESPONSE_SIZE?-?2
#define?PZEM_BAUD_RATE?9600
#ifdef?PZEM004_SOFTSERIAL????
PZEM004T::PZEM004T(uint8_t?receivePin?uint8_t?transmitPin)
{
????SoftwareSerial?*port?=?new?SoftwareSerial(receivePin?transmitPin);
????port->begin(PZEM_BAUD
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-12-17?20:54??PZEM004T-master\
?????文件?????????242??2018-12-17?20:54??PZEM004T-master\.gitignore
?????文件????????1069??2018-12-17?20:54??PZEM004T-master\LICENSE
?????文件????????4081??2018-12-17?20:54??PZEM004T-master\PZEM004T.cpp
?????文件????????1423??2018-12-17?20:54??PZEM004T-master\PZEM004T.h
?????文件????????4586??2018-12-17?20:54??PZEM004T-master\README.md
?????目錄???????????0??2018-12-17?20:54??PZEM004T-master\examples\
?????目錄???????????0??2018-12-17?20:54??PZEM004T-master\examples\PZEMDisplay\
?????文件?????????631??2018-12-17?20:54??PZEM004T-master\examples\PZEMDisplay\PZEMDisplay.ino
?????目錄???????????0??2018-12-17?20:54??PZEM004T-master\examples\PZEMHardSerial\
?????文件?????????602??2018-12-17?20:54??PZEM004T-master\examples\PZEMHardSerial\PZEMHardSerial.ino
?????目錄???????????0??2018-12-17?20:54??PZEM004T-master\examples\PZEM_ESP32HwSerial\
?????文件?????????856??2018-12-17?20:54??PZEM004T-master\examples\PZEM_ESP32HwSerial\PZEM_ESP32HwSerial.ino
?????目錄???????????0??2018-12-17?20:54??PZEM004T-master\examples\PZEM_ESP8266HwSerial\
?????文件????????1665??2018-12-17?20:54??PZEM004T-master\examples\PZEM_ESP8266HwSerial\PZEM_ESP8266HwSerial.ino
?????文件?????????498??2018-12-17?20:54??PZEM004T-master\keywords.txt
?????文件?????????630??2018-12-17?20:54??PZEM004T-master\library.json
?????文件?????????211??2018-12-17?20:54??PZEM004T-master\library.properties
評論
共有 條評論