27 endstop(uint8_t pin,
bool default_state) {
38 pinMode(
_pin, INPUT_PULLUP);
Class that functions for interacting with end-stop.
bool get_state()
Get the state of end-stop.
void init()
Initialize the Input pin for end-stop.
endstop(uint8_t pin, bool default_state)