Skip to content

Instantly share code, notes, and snippets.

View sanushen's full-sized avatar

Sanushen Govender sanushen

View GitHub Profile
@sanushen
sanushen / servoControl.ino
Created August 7, 2018 15:47
Simple Arduino sketch to control 2 servo motors using an analog joystick
#include <Servo.h>
//Joystick pins
int analog_x = A0;
int analog_y = A1;
//Horizontal + vertical values
int x;
int y;