No.My first question is: Does all digital pins support open drain?
It's all in the datasheet described.
No.My first question is: Does all digital pins support open drain?
Code: Select all
pinMode(sensor, INPUT);Code: Select all
HardwareSerial Pzemserial(2);
#define RXD2 16 //Gpio pins Serial2
#define TXD2 17
Pzemserial.begin(9600, SERIAL_8N1, RXD2, TXD2);