-
Notifications
You must be signed in to change notification settings - Fork 1
DEPRECATED
Bendeguz-Cs edited this page Apr 16, 2025
·
5 revisions
Important
These functions are no longer supported and will not be included in future updates
getMotion()
getDirection()
Returns true if the encoder is moving, if t's not then it will return false
none
//prints a 1 to the serial monitor if the encoder is moving, else it prints 0
Serial.println(encoder.getMotion());Returns 1 for CW rotation, -1 for CCW rotation
none
//
Serial.println(encoder.getDirection());