curdeveryday / vscode-m5stack-mpy

A extension to mange files for M5Stack micropython system
MIT License
32 stars 14 forks source link

Revisit completion and run python command #26

Closed darul75 closed 2 years ago

darul75 commented 2 years ago

Hi @curdeveryday

This PR brings the following changes:

Then could you clarify what is the source of truth for the micropython functions and modules which can be used.

I got this page https://github.com/m5stack/M5Stack_MicroPython and this other https://github.com/m5stack/UIFlow-Code/wiki/Hardware

I tried to tests all functions using the execute feature but it becomes very challenging to make them working, specially when there was this issue with comments.

Plus it is unclear which functions are really available against the lcd/machine...modules is that something where you can help.

You can start playing with this sandbox file to see it in action

https://github.com/curdeveryday/vscode-m5stack-mpy/compare/master...darul75:task/completion?expand=1#diff-980103a6219a7a26da1227b8096d16f144dd79f02634d0e833bed9a406e6abc7

the trick to skip comments from being sent to the device

https://github.com/curdeveryday/vscode-m5stack-mpy/compare/master...darul75:task/completion?expand=1#diff-712ffc191bdeefcad981f5da7c2bb1550371e10c6854ed1b624ec4f415f7686eR1

https://user-images.githubusercontent.com/2134003/150991640-02400ecd-04c4-4f1b-b920-9f50ee4e830c.mp4