Search found 206 matches

by marfis
Tue May 04, 2021 9:12 pm
Forum: General Discussion and Questions
Topic: Sad farewell to pyboard and micropython, another push is needed to finish things off...
Replies: 10
Views: 1586

Re: Sad farewell to pyboard and micropython, another push is needed to finish things off...

> People buy the boards and do a little project, and that's it. They do not seem to do anything more. I felt this was a unfair statement so why not explaining how our experience is? We‘re working in teams of 3..6 people developing FW entirely in uPy for a device thats pretty complex, for a large ger...
by marfis
Tue Feb 23, 2021 8:47 pm
Forum: Raspberry Pi microcontroller boards
Topic: PIO: where am I going wrong? [SOLVED-ish]
Replies: 15
Views: 1478

Re: PIO: where am I going wrong?

I could reproduce this and it seems indeed the square wave that gets distorted at the time when the PIO starts the measurement. For debugging I added a sidestep that toggles a pin while the measurement was active: label('low_high') jmp(x_dec, 'next') .side(0) label('next') jmp(pin, 'low_high') .side...
by marfis
Sun Feb 21, 2021 10:39 pm
Forum: Raspberry Pi microcontroller boards
Topic: DMA, adresses
Replies: 24
Views: 2731

Re: DMA, adresses

some snippets on how to glue the PIO configured for ws2812 (Neopixel) with the DMA controller can be found here: https://github.com/hoihu/projects/blob/master/pico/dma_ws2812.py basically all it does is to setup a dma channel to push out the data to the PIO's TXFIFO. The configuration of the PIO is ...
by marfis
Sat Feb 20, 2021 9:43 pm
Forum: Raspberry Pi microcontroller boards
Topic: DMA, adresses
Replies: 24
Views: 2731

Re: DMA, adresses

For anyone who might be interested in a REPL friendly way to interact with the DMA module, I wrote a uctypes wrapper https://github.com/hoihu/projects/blob/master/pico/dma.py example (memcopy of 2 bytearrays): https://github.com/hoihu/projects/blob/master/pico/dma_memory_transfer.py Note that this m...
by marfis
Sun Feb 07, 2021 11:14 pm
Forum: Raspberry Pi microcontroller boards
Topic: DMA, adresses
Replies: 24
Views: 2731

Re: DMA, adresses

ups, yes that was @mw66 snippet sorry..
by marfis
Sun Feb 07, 2021 10:24 pm
Forum: Raspberry Pi microcontroller boards
Topic: DMA, adresses
Replies: 24
Views: 2731

Re: DMA, adresses

I think here (from your snippet above):

DmaChan0.SetChannelData(uctypes.addressof(screen), uctypes.addressof(screen1), 30, True)
by marfis
Sun Feb 07, 2021 9:13 pm
Forum: Raspberry Pi microcontroller boards
Topic: DMA, adresses
Replies: 24
Views: 2731

Re: DMA, adresses

cool, looks really good! The PIO's capabilities are pretty awesome.

A small note: I think the snippet is missing the `SetChannelData`method?
by marfis
Sat Feb 06, 2021 8:43 pm
Forum: Raspberry Pi microcontroller boards
Topic: DMA, adresses
Replies: 24
Views: 2731

Re: DMA, adresses

> when doing "'from uctypes import addressof". Any ideas or hints? I'm using a local build and this works (uctypes is enabled in mpconfigport.h). There was an issue in official releases not including some libs (array, possibly others too..) but this has been resolved meanwhile. So you might just try...
by marfis
Fri Sep 18, 2020 3:52 pm
Forum: Announcements and News
Topic: MicroPython version 1.13 released
Replies: 3
Views: 5216

Re: MicroPython version 1.13 released

A little late.. but a big thank you to Damien and all the contributors.

What a big changelog and somehow it seems to address magically things I‘ve silently wished for. Great.

Keep it up!
by marfis
Sat Jun 20, 2020 6:33 pm
Forum: Other Boards
Topic: Pybricks: MicroPython for LEGO
Replies: 8
Views: 6809

Re: Pybricks: MicroPython for LEGO

Really nice project setup and great to see a popular HW being MicroPythonized.

Good for me too since it is likely not too far away when my kids want to have a lego tech kit😉