How to disable D3's internal resistor
Posted: Wed Jul 03, 2019 1:03 am
As we know, the esp8266 D3 pin have internal 10K resistor.
How to disable that and let D3 can read Dry contact perfectly?
I get High when reading Dry contact...
thanks and code as below
How to disable that and let D3 can read Dry contact perfectly?
I get High when reading Dry contact...
thanks and code as below
Code: Select all
int pins = D3;
void setup() {
Serial.begin(115200);
pinMode(pins, INPUT);
}
void loop() {
Serial.print(digitalRead(pins));
delay(500);
}