Need more library
Closed this issue · 1 comments
In the new python editor, I try to put its generated python code into microbit v2.
I find that neopixel cannot be used. In addition, some string functions are disappeared like replace etc.
Thanks for the report @crouse12.
The string methods should be the same for both MicroPython versions. v1 has:
>>> dir("")
['find', 'rfind', 'index', 'rindex', 'join', 'split', 'rsplit', 'startswith', 'endswith', 'strip', 'lstrip', 'rstrip', 'format', 'replace', 'count', 'lower', 'upper', 'isspace', 'isalpha', 'isdigit', 'isupper', 'islower']
And v2:
>>> dir("")
['__class__', 'count', 'endswith', 'find', 'format', 'index', 'isalpha', 'isdigit', 'islower', 'isspace', 'isupper', 'join', 'lower', 'lstrip', 'replace', 'rfind', 'rindex', 'rsplit', 'rstrip', 'split', 'startswith', 'strip', 'upper', 'decode', 'encode']
I don't notice anything missing, which one did you find?
About the neopixels, we have this GH issue to track that: microbit-foundation/micropython-microbit-v2#4
If it's okay I'll close this issue here as the issues mentioned are related to MicroPython and this repository is for the Python Editor itself. But feel free to reopen if you have any questions about the Editor, or to open new issues in https://github.com/microbit-foundation/micropython-microbit-v2/ .