Skip to content

analogRead() gives wrong (previous) measurement #137

@ThorsAvenger

Description

@ThorsAvenger

I am using a GD32F130K8, and am reading multiple ADC pins. I've noticed that the values are shifted when the analogRead() is called in a for-loop. However, I also noticed that if I call the analogRead() function twice and take the value from the second call the correct values are being read and printed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions