November 04, 2009, at 11:28 AM
by David A. Mellis -
Deleted lines 8-12:
Parameter values between 544 and 2400 passed to the ''write'' method will be interpreted in microseconds (uS), exactly the same as the [[ServoWriteMicroseconds|writeMicroseconds]] method.
Changed lines 11-12 from:
''servo''.write(angle OR microseconds)
to:
Deleted lines 18-19:
microseconds: the angle value in uS, from 544 to 2400
November 04, 2009, at 12:11 AM
by Paul Badger -
Changed lines 16-17 from:
to:
''servo''.write(angle OR microseconds)
Added lines 24-25:
microseconds: the angle value in uS, from 544 to 2400
November 04, 2009, at 12:05 AM
by Paul Badger -
Changed line 41 from:
* [[ServoAttach | attach]]
to:
* [[ServoAttach | attach()]]
November 04, 2009, at 12:04 AM
by Paul Badger -
Changed line 41 from:
to:
* [[ServoAttach | attach]]
November 04, 2009, at 12:03 AM
by Paul Badger -
Changed line 34 from:
to:
myservo.write(90); // set servo to mid-point
November 04, 2009, at 12:02 AM
by Paul Badger -
Changed lines 9-13 from:
Parameter values between 544 and 2400 passed to the ''Write'' method will be interpreted in microseconds (uS), exactly the same as the [[ServoWriteMicroseconds|writeMicroseconds]] method.
to:
Parameter values between 544 and 2400 passed to the ''write'' method will be interpreted in microseconds (uS), exactly the same as the [[ServoWriteMicroseconds|writeMicroseconds]] method.
November 04, 2009, at 12:01 AM
by Paul Badger -
Changed lines 9-13 from:
Parameter values between 544 and 2400 passed to the Write method will be interpreted in microseconds (uS), exactly the same as the [[ServoWriteMicroseconds|writeMicroseconds]] method.
to:
Parameter values between 544 and 2400 passed to the ''Write'' method will be interpreted in microseconds (uS), exactly the same as the [[ServoWriteMicroseconds|writeMicroseconds]] method.
November 04, 2009, at 12:01 AM
by Paul Badger -
Changed lines 9-13 from:
Parameter values between 544 and 2400 will be interpreted in microseconds (uS), exactly the same as the [[ServoWriteMicroseconds|writeMicroseconds]] method.
to:
Parameter values between 544 and 2400 passed to the Write method will be interpreted in microseconds (uS), exactly the same as the [[ServoWriteMicroseconds|writeMicroseconds]] method.
November 04, 2009, at 12:00 AM
by Paul Badger -
Added lines 9-13:
Parameter values between 544 and 2400 will be interpreted in microseconds (uS), exactly the same as the [[ServoWriteMicroseconds|writeMicroseconds]] method.
November 01, 2008, at 04:57 PM
by David A. Mellis -
Changed lines 7-8 from:
Writes an angle to the servo, moving the shaft to that orientation.
to:
Writes a value to the servo, controlling the shaft accordingly. On a standard servo, this will set the angle of the shaft (in degrees), moving the shaft to that orientation. On a continuous rotation servo, this will set the speed of the servo (with 0 being full-speed in one direction, 180 being full speed in the other, and a value near 90 being no movement).
Changed lines 17-18 from:
angle: the angle to write to the servo, from 0 to 180 degrees
to:
angle: the value to write to the servo, from 0 to 180
September 07, 2008, at 03:25 AM
by David A. Mellis -
Changed lines 33-37 from:
to:
@]
!!!!See also
* [[ServoRead | read()]]
September 07, 2008, at 03:25 AM
by David A. Mellis -
Added lines 1-33:
[[Servo]]
!!write()
!!!!Description
Writes an angle to the servo, moving the shaft to that orientation.
!!!!Syntax
''servo''.write(angle)
!!!!Parameters
servo: a variable of type Servo
angle: the angle to write to the servo, from 0 to 180 degrees
!!!!Example
[@
#include <Servo.h>
Servo myservo;
void setup()
{
myservo.attach(9);
myservo.write(90);
}
void loop() {}
@]