You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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
The text was updated successfully, but these errors were encountered: