Skip to content

getAnalogValue() return only 0.  #3

@AqeeAqee

Description

@AqeeAqee

Hi,
I am trying to read a analog pin on Pico, via analogRead() on Makecode Arcade with rp2040(or r2 variant), but always got 0. So digged codes of arcade, then codal-pico, then this repo, I found the RP2040Pin::getAnalogValue() function just return 0 at last. Hope my understanding is correct, this is the reason why I got 0.

https://github.com/lancaster-university/codal-rp2040/blame/ca54f854754d4cd2aad993f6c8027b8ecb9fb1a1/source/RP2040Pin.cpp#L363-L376

If so, hope this can be fixed ASAP, I need analog pin features for analog joystick on new board of Pico.
Thanks a lot in advance !

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