Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getAnalogValue() return only 0. #3

Open
AqeeAqee opened this issue Oct 3, 2023 · 0 comments
Open

getAnalogValue() return only 0. #3

AqeeAqee opened this issue Oct 3, 2023 · 0 comments

Comments

@AqeeAqee
Copy link

AqeeAqee commented Oct 3, 2023

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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant