Update code for new HW

Coded and tested analog/pressure input, regulator control and hall switch input.