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

Is it possible to expose Analog port 6 for checking battery? #134

Open
chino opened this issue Aug 21, 2020 · 0 comments
Open

Is it possible to expose Analog port 6 for checking battery? #134

chino opened this issue Aug 21, 2020 · 0 comments

Comments

@chino
Copy link

chino commented Aug 21, 2020

Based on [1] it appears that there is no way to check the battery level using makecode. From what I can see makecode getPin() [2] seems to check the bootloader config to see which pins are available. However we can see that A6 is not defined in the bootloader config [3]. I have provided an example makecode project [4] for testing as well.

I'm wondering if it would be as simple as exposing the mapping in the bootloader config for it to be available for use from makecode as well?

[1] https://learn.adafruit.com/adafruit-pygamer/pinouts
[2] https://github.com/microsoft/pxt-common-packages/blob/a21a70bc8cf5c4d4ab0c184a29a171de833183cf/libs/base/core.cpp#L1502
[3] https://github.com/adafruit/uf2-samdx1/blob/master/boards/arcade_pygamer/board_config.h#L88
[4] https://makecode.com/_LCRhqhfV8h5f

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