RX3 Sidestand Safety Switch - Part II

In Part I I described wiring up a sidestand switch and describing how it could be used to light up an LED when the sidetand is down, plus the basics of a scheme to shut the bike down if you try to ride away with the sidestand down. That scheme involves detecting the following three conditions are met: