Comments (6)
Hi @jkozniewski,
Can you please take a look at https://github.com/Josverl/PIO_ASM_typing and let me know if that would be helpful.
With pio_asm_types |
---|
I have not packaged or published this, So you will will need to copy some files into your typing folder, MicroPico puts that in a non default folder, but should not be hard to find.
copy to typings/rp2
include in your source ( and also sync to the rp2040 board) :
from micropico.
@Josverl Thanks for your contribution. I've just got back from a trip so I can test.
@paulober - so where is the folder for MicroPico typings where I can paste the files ?
from micropico.
Feedback?
from micropico.
@paulober - so where is the folder for MicroPico typings where I can paste the files ?
You can find the installed stubs in $HOME/.micropico-stubs/included
(if you want to modify the included ones) but keep in mind that changes to this can be overwritten by a new update of the extension.)
from micropico.
Ok, thanks, I'll give it a try.
On a related note - seems that the micropython stubs are also not up to date in regard with rp2.DMA
class and the attributes such as count
etc - as per docs: https://docs.micropython.org/en/latest/library/rp2.DMA.html
from micropico.
Thanks for notification
Currently I publish the stubs for each release, it may take some manual adjusting as new documentation tends to come with some quicks and additional adjustments that need hands on keyboard,
the stubs for v1.23.0 are available and these do include the DMA class
See :
- https://github.com/Josverl/micropython-stubs/blob/6b5416a269341331fce3dfe2e0f130373c78c1f5/publish/micropython-v1_23_0-rp2-stubs/rp2.pyi#L346-L470
- #230 and AFAIK this is now part of MicroPico.
I also build stubs for the preview versions of micropython - but I currently do no push them to PyPi as that would create a lot of churn.
If you need / want that they could be installed directly from Github with the proper URL
If you find any other things that you´d like improved, please do let me know at : https://github.com/Josverl/micropython-stubs/issues
from micropico.
Related Issues (20)
- Debug variables
- [error] Invalid version for /usr/bin/python HOT 2
- How can I get a listing of the files already on the Pico? HOT 2
- MicroPico disconnect won't free serial port HOT 3
- friendly names for additional sync folders
- Project configuration fails when creating new project on external drive HOT 4
- repl not reading print data when not in while true loop
- pico keeps disconnecting and reconnecting when i try to run a script on it HOT 8
- Upload/ Sync syncFIleTypes seems to not respected when editing
- Sync Folder seems to not respected settings.json HOT 4
- Switch stubs throw syntax error "&" unexpected HOT 1
- Working on two Raspberry Pi Picos in two workspaces, uploading code copies to both
- Under Linux, cannot connect ot Pico HOT 3
- Uploading a file to Pico with spaces in its name - explorer does't show file HOT 1
- wrapper_win32_amd64.exe detected as malware by Microsoft Defender on 1 Jun 2024 HOT 3
- Sync/Connection breaks on stopping multi-threaded program in Pico HOT 3
- Pylance doesn’t recorgnise Micropython specific keywords anymore after reopening a project HOT 10
- Switch Stubs resulted in an error HOT 1
- Option to choose ports for manual connection HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from micropico.