Asking for help programming servos for my wedding lightsaber build

I’ve checked in some servo support on github.
It’s pretty basic, but adds a new blade type of blade:

  ServoBladePtr<bladePowerPin2>()

In some cases it will print out warnings if you try to use it wrong. However, it’s not particularly clever about it, so it’s not a substitute for knowing which timer controls which pad.

There are two things that this doesn’t do yet, which may need to be fixed:

  1. servos don’t really use the full range of PWM values, and it might be helpful if the ServoBladePtr<> adjusted the input values accordingly. This basically means mapping “black” to 10% PWM and “white” to 90% PWM instead of 0% and 100%. Not sure how much this matters, but servos might get confused if we send them all high or all low signals.
  2. When using the FETs to generate servo data (with a pullup resistor) the signal will be inverted. For one thing, this means that the left and right will be inverted, but it also means that the start signal for each PWM cycle will move around. I don’t know if servos care about such things though. It may or may not be a problem.

Also, I have not tested any of this yet, so it might not work at all…