Skip to main content

Encoder

Encoders track rotation and position. They are commonly used for wheels, knobs, and motion feedback.

Add encoder​

Attach an encoder to two digital pins before reading or updating it.

Read encoder​

Read the current encoder count.

Write encoder value​

Set or reset the encoder count to a chosen value.