Returns the boolean value in the pin connected to the Endstop switch far from the motor home.
The signal of the endstop switch far from motor home: LOW or HIGH.
axis.readEndstopFar()
#include <Arduino_EMBRYO_2.h>
StepMotor axis(1, A5, 5, 6, 3, 4, A2, A1, 2, 12);
void setup() {
Serial.begin(9600);
while (!Serial) {};
axis.begin();
Serial.println("Endstop Far logic");
Serial.println("Not pressed: " + String(axis.readEndstopFar()));
Serial.println("Pressed: " + String(!axis.readEndstopFar()));
}
void loop() {}