New State machine tutorial

Hi @cyrut2,

Read this first.

PullUp is just the exact opposite of PullDown. hence:if (switchMode == PULLUP) pinIs = !pinIs;
If the mode is pullup, pinIs = not pinIs

Jacques