def digital_read(pin_num, board_num=0): """Returns the status of the input pin specified. 1 is active 0 is inactive Note: This function is for familiarality with Arduino users """ return pfcom.read_bit(pin_num, INPUT_PORT, board_num) ^ 1
def digital_read_pullup(pin_num, board_num=0): return pfcom.read_bit(pin_num, INPUT_PULLUP, board_num)