Skip to content

Instantly share code, notes, and snippets.

View mbagrianski's full-sized avatar

mbagrianski

  • University of Toronto
View GitHub Profile
#include<Wire.h>
#include <LiquidCrystal.h>
// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
const int rs = 8, en = 9, d4 = 4, d5 = 5, d6 = 6, d7 = 7;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
int motor = 0, motorVal = 90;
const int analogPin = A0;
#include <Wire.h>
#include <Servo.h>
Servo thumb;//initialize servos being used
Servo index;
Servo middle;
Servo ring;
Servo pinkie;
Servo wrist;