Description Usage Arguments Value Examples
Returns a configured servo instance.
1 | get_servo(pin, initial_value = 0)
|
pin |
A character or numeric of length one with the GPIO pin that the servo is connected to. |
initial_value |
A numeric of length one. If 0 (the default), the device's mid-point will be set initially. Other values between -1 and +1 can be specified as an initial position. If 'NULL', it will not move. |
A Servo S4 object, this object will be set to work with the configured servo.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.