get_input

Description

Queries the state of a digital input.

Signature

get_input(self, input_num: int) -> bool

Parameters

input_num: int

The input channel to return the state of, [0, 7].

Returns

bool

The value of the input channel.

Example