switching for ofxPiTFT