-->
Page 1 of 1

How to disable D3's internal resistor

PostPosted: Wed Jul 03, 2019 1:03 am
by diner peng
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

Code: Select allint pins = D3;
void setup() {
  Serial.begin(115200);
  pinMode(pins, INPUT);
}

void loop() {
  Serial.print(digitalRead(pins));
  delay(500);
}