using rpi built in resistors for all 3 input pins