Just wondering if anyone else has had this issue - and if it is an expected behaviour,
When I touch (with my finger, piece of unconnected wire, or metal screwdriver on Pin D5 it triggers the interrupt function).
The desired normal wiring is to have D5 connected to 3V3 with a button in-between the two.
It works when I connect the button inline - but still without pressing the button I can trigger the interrupt by holding my finger or a piece of wire on D6, GND, 3V3.
Oddly enough - when I remove it from the Control Everything PIN out board - it doesn’t seem to have this issue. I suspect the board is damaged or isn’t correctly separating pins. Is my assumption here correct?
I have the below code in setup:
pinMode(D5, INPUT_PULLDOWN);
attachInterrupt(D5, muteButtonFunction, RISING);
I have this code in the function:
muteButtonFunction()
{
lightsOff("Off");
mute = 1;
muteLastTriggered = Time.now();
digitalWrite(D7, HIGH);
delayMicroseconds(2000000);
digitalWrite(D7, LOW);
return 1;
}
Any thoughts are greatly appreciated!