buttons connected to Arduino pins:
- P_LEFT = 12; //left
- P_UP = 11; //up
- P_RIGHT = 10; //right
- P_DOWN = 9; //down
- P_ZOOM_IN = 7; //zoom in
- P_ZOOM_OUT = 8; //zoom out
Pelco D output : Arduino D4
Camera pan speed can be changed by pressing left+up or left+down