Skip to content

Sporadic 255/-255 values at interruptRotator example when hovering around 0 #35

Open
@Whahahahaha

Description

@Whahahahaha

the interruptRotator example causes some spikes of 255 or -255 for the encoder position when you rotate around the "0" position.

it's fixable by calling noInterrupts(); and interrupts(); around the
"newPos = encoder->getPosition();" line to temporarily disable interrupts when getting the current value.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions