Raspberry PI Rotary Swich classes