bool p: [0,0] true; (0,1) false;
bool inputFallP: [0,0] true; (0,1) false;
bool inputRiseP: [0,1) false;
