Arduino - Servo.read()

Description

Read the current angle of the servo (the value passed to the last call to Servo.write().

Syntax

servo.read()

Parameters

  • servo: a variable of type Servo

Returns

  • The angle of the servo, from 0 to 180 degrees.

ARDUINO BUY RECOMMENDATION

Arduino UNO R3
Arduino Starter Kit
Disclosure: Some links in this section are Amazon affiliate links. If you make a purchase through these links, we may earn a commission at no extra cost to you.
Additionally, some links direct to products from our own brand, DIYables.

※ OUR MESSAGES