Quote:
Originally Posted by Yodamadashi
I have also linked a picture of the wiring.
|
Your wiring is wrong.
The DIO pins have an internal pullup resistor to +5 volts. When nothing is connected, or when your switch is open, the value will be TRUE. When your switch is closed, the value will be...TRUE.
You need to put the switch between the SIG and (-) pins (the white and black wires on a standard PWM extension cable). Do not connect anything to the center +5 pin. That way, when the switch is closed, the SIG pin will be pulled to ground and read FALSE.