8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On a PyBoard v1.1 with firmware 1.13, put the following code into a file:
import micropython @micropython.viper def take_memoryview_slice(): ba = bytearray(10) mv = memoryview(ba) slice = mv[0:1]
Running take_memoryview_slice() resets the PyBoard.
take_memoryview_slice()
The text was updated successfully, but these errors were encountered:
Thanks for the report, I can confirm the issue (on the unix port).
The problem is that the native emitter in viper mode cannot handle slices with literal integer arguments. To work around it you can use:
import micropython from micropython import const @micropython.viper def take_memoryview_slice(): ba = bytearray(10) mv = memoryview(ba) slice = mv[const(0):const(1)]
Sorry, something went wrong.
Always release displays during deep sleep
ed326c4
Closes micropython#6523
a1fa1ad
No branches or pull requests
On a PyBoard v1.1 with firmware 1.13, put the following code into a file:
Running
take_memoryview_slice()
resets the PyBoard.The text was updated successfully, but these errors were encountered: