a simple library to control an animatronic head
Alex.h
- Committer:
- mxjac
- Date:
- 2010-12-15
- Revision:
- 1:c5edd3b18b79
- Parent:
- 0:8474cbec06bd
- Child:
- 2:3920d79c79b1
File content as of revision 1:c5edd3b18b79:
#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(); private: SRF05 S; Servo E, M, L, R; PwmOut Led; Serial pc; };