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
if (switchMode == PULLUP) pinIs = !pinIs;
Jacques