Hi
Probably a stupid question but I can’t seem to get it to work.
Do I need a external resistor when I connect D0 to ground which should make it to go HIGH? Docs state that it already has one. Can’t get it to work connecting it to ground.
Boron v2.20
Using
int pin = D0;
loop() {
pinmode(pin, INPUT_PULLDOWN);
Particle.publish(“Pin”, String(digitalRead(pin));
}
then physically wire pin D0 to ground. Always returns 0. Any ideas!
Thanks
5310