How to program a servo for continuous rotation?

A continuous rotation "servo" can be controlled by the Servo library using the output from a digital pin as normal but instead of position control you get speed and direction control. To do this it uses the signal wire as well as 5V and GND

Note that unless the "servo" is tiny it should not be powered from the Arduino 5V output but rather from an external power supply with common GNDs.