Skip to content

Instantly share code, notes, and snippets.

View DimaK415's full-sized avatar

Dmitry Karpovich DimaK415

View GitHub Profile
//Libraries
#include <AltSoftSerial.h>
#include <Sabertooth.h>
#include <PID_v1.h>
//Constants
//SoftwareSerial SWSerial(NOT_A_PIN, 8); // RX on no pin (unused), TX on pin 8 (to S1)
AltSoftSerial altSerial;
Sabertooth ST(128, altSerial); // Address 128, and use SWSerial as the serial port.
#define leftPot A0 // pin A0 is Left Pot Input