update controller to use raspberry pi gpio