Search found 215 matches

by marfis
Tue Feb 23, 2021 8:47 pm
Forum: Raspberry Pi microcontroller boards
Topic: PIO: where am I going wrong? [SOLVED-ish]
Replies: 16
Views: 13683

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: 23854

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: 23854

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: 23854

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: 23854

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: 23854

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: 23854

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: 46292

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: 9
Views: 24504

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😉
by marfis
Mon Jun 01, 2020 7:14 pm
Forum: Hardware Projects
Topic: MicroPython based 3D printed drawing robot powered by a TTGO T-Display
Replies: 14
Views: 52151

Re: MicroPython based 3D printed drawing robot powered by a TTGO T-Display

just really impressed by how well you documented this project. Also you seem to have gone the extra mile with the ui/font and preloaded fat image to download.