void Servo::write(int value)
{
if(value < MIN_PULSE_WIDTH)
{ // treat values less than 544 as angles in degrees (valid values in microseconds are handled as microseconds)
if(value < 0) value = 0;
if(value > 180) value = 180;
value = map(value, 0, 180, SERVO_MIN(), SERVO_MAX());
}
this->writeMicroseconds(value);
}
But the Uno Rev4 implementation seems to only work with angles:
The Servo.h header file has this comment for write():
This is true for AVR boards:
But the Uno Rev4 implementation seems to only work with angles:
From a quick scan of the different implementations:
Should be an easy fix, happy to send a PR if someone will approve it.