Balancing unicycle help

PaulS:

  1. the deadman switch is actually more dangerous as it is, then it would be removed.

Bad idea. There is something fundamentally wrong with your wiring if you can't read a simple switch properly.

I don't see how it can be the switch or wiring .. I will happily test it the next time I am at the machine ... but the switch is causing something to happen when pressed and something else to happen when not pressed ,surely that means it is being read ok, but something is wrong in the code ?

When I output to the serial window the switch is doing exactly as I want it to do IE changing the motorpercent to zero