Ported support for REV switches from Arduino Lib