Reference.ServoWrite History

Show minor edits - Show changes to markup

November 04, 2009, at 05:28 PM 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 writeMicroseconds method.

Changed lines 11-12 from:

servo.write(angle OR microseconds)

to:

servo.write(angle)

Deleted lines 18-19:

microseconds: the angle value in uS, from 544 to 2400

November 04, 2009, at 06:11 AM by Paul Badger -
Changed lines 16-17 from:

servo.write(angle)

to:

servo.write(angle OR microseconds)

Added lines 24-25:

microseconds: the angle value in uS, from 544 to 2400

November 04, 2009, at 06:05 AM by Paul Badger -
Changed line 41 from:
to:
November 04, 2009, at 06:04 AM by Paul Badger -
Changed line 41 from:
to:
November 04, 2009, at 06:03 AM by Paul Badger -
Changed line 34 from:
  myservo.write(90);
to:
  myservo.write(90);  // set servo to mid-point
November 04, 2009, at 06: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 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 writeMicroseconds method.

November 04, 2009, at 06: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 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 writeMicroseconds method.

November 04, 2009, at 06: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 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 writeMicroseconds method.

November 04, 2009, at 06: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 writeMicroseconds method.

November 01, 2008, at 09: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 09:25 AM by David A. Mellis -
Changed lines 33-37 from:

@]

to:

@]

See also

September 07, 2008, at 09: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() {} 

Share