20kg digital servo not working, probably because my frequency calculations are very wrong (raspberry pi)
You should not have needed to change any code if both servos have the same angle limits.

The digital servo does not need a pulse 333 times per second.

0.16sec/60° is the shaft speed, not the HI pulse required. The pulse should still be 1500us for center, 1000us for one extreme and 2000us for the other extreme.