add rae characters to selection

This commit is contained in:
Persephone Bubblegum-Holiday 2025-04-02 15:27:52 -07:00
parent 66afcad064
commit ab54aaead6
2 changed files with 18 additions and 26 deletions

View file

@ -4,8 +4,8 @@
#include <string.h> #include <string.h>
Servo servoChannel[8]; Servo servoChannel[8];
byte onDegrees[8] = { 90, 0, 0, 0, 0, 0, 0, 0 }; // these are incomplete, i need to tune them when i get the servos in byte onDegrees[8] = { 90, 0, 0, 0, 45, 135, 0, 0 }; // these are incomplete, i need to tune them when i get the servos in
byte offDegrees[8] = { 0, 0, 0, 0, 0, 0, 0, 0 }; byte offDegrees[8] = { 0, 0, 0, 0, 90, 90, 0, 0 };
int byte1 = 0; int byte1 = 0;
int byte2 = 0; int byte2 = 0;
@ -64,7 +64,7 @@ void loop() {
servoChannel[2].write(onDegrees[3]); servoChannel[2].write(onDegrees[3]);
digitalWrite(A3, 1); digitalWrite(A3, 1);
} else { } else {
servoChannel[2].write(offDegrees[3]); //servoChannel[2].write(offDegrees[3]); dont
digitalWrite(A3, 0); digitalWrite(A3, 0);
} }
@ -80,7 +80,7 @@ void loop() {
servoChannel[4].write(onDegrees[5]); servoChannel[4].write(onDegrees[5]);
digitalWrite(A5, 1); digitalWrite(A5, 1);
} else { } else {
servoChannel[4].write(offDegrees[5]); //servoChannel[4].write(offDegrees[5]); dont
digitalWrite(A5, 0); digitalWrite(A5, 0);
} }

View file

@ -36,27 +36,19 @@ namespace rshw2sst
Console.WriteLine("FATAL: Only RSHW and CSHW files are supported."); Console.WriteLine("FATAL: Only RSHW and CSHW files are supported.");
return; return;
} }
switch (args[1].ToLower()) string chara = args[1].ToLower();
if (chara.Contains("chuck") || chara.Contains("rolfe")) charaIndex = 0;
else if (chara.Contains("helen") || chara.Contains("mitzi")) charaIndex = 1;
else if (chara.Contains("munch") || chara.Contains("fatz")) charaIndex = 2;
else if (chara.Contains("jasper") || chara.Contains("beach")) charaIndex = 3;
else if (chara.Contains("pasqually") || chara.Contains("dook")) charaIndex = 4;
else if (chara.Contains("bella") || chara.Contains("billy"))
{ {
case "chuck": Console.WriteLine("you wish!!!!");
charaIndex = 0;
break;
case "helen":
charaIndex = 1;
break;
case "munch":
charaIndex = 2;
break;
case "jasper":
charaIndex = 3;
break;
case "pasqually":
charaIndex = 4;
break;
case "bella":
Console.WriteLine("you wish!!!");
return; return;
default: }
else
{
Console.WriteLine("FATAL: Invalid character."); Console.WriteLine("FATAL: Invalid character.");
return; return;
} }