Code Monkey home page Code Monkey logo

Comments (6)

Josverl avatar Josverl commented on August 20, 2024 2

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
after

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.

jkozniewski avatar jkozniewski commented on August 20, 2024 1

@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.

Josverl avatar Josverl commented on August 20, 2024

Feedback?

from micropico.

paulober avatar paulober commented on August 20, 2024

@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.

jkozniewski avatar jkozniewski commented on August 20, 2024

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.

Josverl avatar Josverl commented on August 20, 2024

@jkozniewski,

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 :

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.