#ifndef Finger_h #define Finger_h #include "Arduino.h" //this includes the arduino library header. It makes all the Arduino functions available in this tab. #include //this includes the servo library header. It makes all the servo functions available in this tab. class Finger//declaration of class Finger { public: Finger();//constructor void attachServoPin(byte servoPin);//servo initializer function void updateFinger(byte flexSensorPin);//flex sensor to servo mapping function int flexSensorReading;//raw reading value from flex sensor int flex;//re-mapped flex sensor reading for convenient mapping to servo byte servoPin;//pin for corresponding servo byte flexSensorPin;//pin for corresponding flex sensor private: Servo digit;//servo declaration }; #endif