player kinda works
This commit is contained in:
parent
8ef01ea1aa
commit
1fb697626e
5 changed files with 298 additions and 44 deletions
|
@ -20,7 +20,7 @@ void setup()
|
|||
servoChannel[5].attach(7);
|
||||
for (int i = 0; i < 8; i++) servoChannel[mapping[i]].write(offDegrees[i]);
|
||||
Serial.begin(9600);
|
||||
Serial.write("PC2,8,Chuck E./Helen/Guest Star");
|
||||
Serial.write("PC2,8,Chuck E./Helen/Guest Star,END");
|
||||
}
|
||||
|
||||
void loop()
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
#include <Servo.h>
|
||||
|
||||
Servo servoChannel[11]; // mouth earL earR eyelidL eyelidR eyeL eyeR headR headL headUp armUpL armUpR elbowR elbowL armTwistL armTwistR bodyTwistR bodyTwistL bodyLean
|
||||
byte onDegrees[19] = { 45, 0, 0, 0, 0, 0, 0, 45, 135, 135, 90, 90, 90, 90, 90, 90, 0, 0, 0 };
|
||||
Servo servoChannel[11]; // mouth earL earR eyelidL eyelidR eyeL eyeR headL headR headUp armUpL armUpR elbowR elbowL armTwistL armTwistR bodyTwistR bodyTwistL bodyLean
|
||||
byte onDegrees[19] = { 45, 0, 0, 0, 0, 0, 0, 135, 45, 135, 90, 90, 90, 90, 90, 90, 0, 0, 0 };
|
||||
byte offDegrees[19] = { 0, 0, 0, 0, 0, 0, 0, 90, 90, 90, 180, 0, 0, 180, 180, 0 , 0, 0, 0 };
|
||||
byte mapping[19] = { 0, 0, 0, 0, 0, 0, 0, 2, 2, 1, 6, 3, 4, 7, 8, 5, 0, 0, 0 };
|
||||
byte mapping[19] = { 0, 0, 0, 0, 0, 0, 0, 2, 2, 1, 6, 3, 4, 7, 8, 5, 9, 9, 10 };
|
||||
|
||||
int byte1 = 0;
|
||||
int byte2 = 0;
|
||||
|
@ -29,7 +29,7 @@ void setup()
|
|||
servoChannel[8].attach(10);
|
||||
for (int i = 0; i < 19; i++) servoChannel[mapping[i]].write(offDegrees[i]);
|
||||
Serial.begin(9600);
|
||||
Serial.write("PC2,32,Mitzi/Helen");
|
||||
Serial.write("PC2,32,Mitzi/Helen,END");
|
||||
}
|
||||
|
||||
void loop() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue