Moves back and forth, demonstrating position commands.
#include <SoftwareSerial.h>
#define TX_PIN 11
#define RX_PIN 10
SoftwareSerial SerialPort(RX_PIN, TX_PIN);
void setup()
{
SerialPort.begin(9600);
SerialPort.listen();
K1.start();
K1.home().wait();
}
void loop()
{
long minimum = K1.getMin().value();
K1.p(minimum).wait();
delay(2000);
long maximum = K1.getMax().value();
long speedLimit = (maximum - minimum) / 10;
K1.p(maximum, speedLimit).wait();
delay(2000);
}