hey guys I want to make a circuit where lets say I have a cable between D12 and D11 where I have a switch between them, I want to execute a specific code when D12 and D11 are connected together, I understand that D11 and D12 might not be the best ones for this.
I have a feeling digitalRead() is the solution but I am affraid I will fry my arduino, can someone guide me to the best way to achieve what I need ? thanks for help
Why between data pins? Why can you not sense a simple grounding of a pin with a switch, as is usually the solution? Are those data pins also connected to anything else?
I can connect it to ground no problem there, I will try to figure out the code now
Don't forget to include a pull up resistor on the input, or enable the internal pull up resistor with pinMode().