Dual servos For Robotic arm axis PLZ HELP

i have been looking around to find some sort of an example of a program that turns 2 servos the same amount of degrees but they have to turn in oposite directions of each other. because they are both mounted with turning side inwards. these servos are both attached to the same axis so they cannot have too much delay otherwise the will work against each other.

sorry if my englisch grammar isnt that great im not a native englisch speaker.

if someone could send me a base code that could perform this task or send me in the right direaction that would be great.

byte angle = 90;
rightServo.write(angle);
leftServo.write(180-angle);

Try it with different values of angle.

Does this do what you want.

Maybe I am going off at a tangent here.
It sounds like you want to use two servos to power one robot joint.
As you suggest it might be difficult for them not to be out of balance with each other.

Would you not be better to have a single servo with enough power for the joint but which has two horns, one driven by the servo and one which is not driven but provides support.

Take a lok at the idler horn and 'C' bracket here;
https://www.robotgeek.com/rg-180-servo;