All other numbers in the system are positive long integers. e.g. pins can't be negative, delays can't go back in time, PWM values must be positive, etc... Servos /can/ go backwards.
Add an offset so that 0S actually goes to the maximum negative angle? That seems dangerous.
Use a flag, and set it if we get a "-" while n is zero. Need to check that /before/ the main switch, before n is set to p. This overloads "-" because it's also used for high state in i2c diagrams.
All other numbers in the system are positive long integers. e.g. pins can't be negative, delays can't go back in time, PWM values must be positive, etc... Servos /can/ go backwards.
Add an offset so that
0S
actually goes to the maximum negative angle? That seems dangerous.Add a '-' command that inverts n? e.g.
90-S