-
Notifications
You must be signed in to change notification settings - Fork 18
Does not support binary or hex values #30
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
Comments
I think |
As a workaround, you can use a f-string. Ie:
This will work for hex and binary values. |
jepler
added a commit
to jepler/Adafruit_CircuitPython_PIOASM
that referenced
this issue
Apr 23, 2022
Closes: adafruit#30 (though I don't know what octal syntax is accepted by official pioasm, we will accept python-style 0o567 not C-style 0567)
jepler
added a commit
to jepler/Adafruit_CircuitPython_PIOASM
that referenced
this issue
Apr 25, 2022
Closes: adafruit#30 (though I don't know what octal syntax is accepted by official pioasm, we will accept python-style 0o567 not C-style 0567)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In principle, the RP2040 datasheet section 3.3.2 suggests that a value can be expressed as a binary value, eg:
0b10101
.In practice this causes an exception:
this also applies to hex values.
ValueError: invalid literal for int() with base 10: '0x1a'
This may be simply a note to put under https://learn.adafruit.com/intro-to-rp2040-pio-with-circuitpython (which thinking about it, I should link to from the docs for this module).
The text was updated successfully, but these errors were encountered: