a simple library to control an animatronic head

Alex.h

Committer:
mxjac
Date:
2011-05-10
Revision:
4:45d466252fb6
Parent:
2:3920d79c79b1

File content as of revision 4:45d466252fb6:

#include "mbed.h"
#include "SRF05.h"
#include "Servo.h"

class Alex
{
    public:
     Alex(SRF05, Servo, Servo, Servo, Servo);// build a head object, comprised of a sensor and 4 servos
     ~Alex();
     void TestHead();
     int Testpresence();
     void Move_eyes(int);
     void Move_mouth(int);
     void Move_leaning(int);
     void Move_rotation(int);
//     void Simulate_Talking(int);
  //   void Presence_too_far();
    // void displaydistance();
    private:
     SRF05 S;
     Servo E, M, L, R;
     PwmOut Led;
     Serial pc;
};