Re:Raspberry Pi Pico W: your $6 IoT platform
by jazzyjackson on Thursday June 30, 2022 @01:39PM
(#31935853)
Do you have any recommendations on how to learn about PIO? I’ve mostly been in the arduino world and got pretty comfortable with AVR features, now I’m writing micropython to control neopixels for a board called the Plasma2040 and instead of bitbanging the signal from a digital pin, it’s apparently generating the signal via PIO, but it’s all black magic to me.
Re:Raspberry Pi Pico W: your $6 IoT platform
by _Microft on Thursday June 30, 2022 @01:58PM
(#31936114)
This is a blog post of someone converting a conventional bit-banged method of driving a display to pure PIO. Maybe it helps getting an idea?
Re:Raspberry Pi Pico W: your $6 IoT platform
by jazzyjackson on Thursday June 30, 2022 @04:29PM
(#31938149)
It is, at once, both over my head and very encouraging that someone who hasn’t used PIO before was able to achieve this, thanks for the link, I think if I compare this code to what the Plasma library is doing I might be able to tease out what’s happening.
Re:Raspberry Pi Pico W: your $6 IoT platform
by _Microft on Thursday June 30, 2022 @04:48PM
(#31938403)
Did you have a look at chapter 3 of the Raspberry Pi Pico C SDK already by the way? It's about PIO programming.
https://www.raspberrypi.com/documentation/microcontrollers/c...
Re:Raspberry Pi Pico W: your $6 IoT platform
by jazzyjackson on Friday July 01, 2022 @12:58AM
(#31942556)
I did not notice they wrote a whole book on the SDK, this looks perfect, thanks again
Re:Raspberry Pi Pico W: your $6 IoT platform
by _Microft on Tuesday July 05, 2022 @02:44AM
(#31985112)
The C SDK contains examples, the actual documentation is in the RP2040 docs. It's also chapter 3.
Re:Raspberry Pi Pico W: your $6 IoT platform
by tverbeure on Thursday June 30, 2022 @05:49PM
(#31939082)
Chapter 3 of the RP2040 datasheet is all about PIO, but it may not be the best wy to learn: https://datasheets.raspberrypi.com/rp2040/rp2040-datasheet.p...
I find the Pico SDK examples useful to learn, but it requires that you already have a good understanding of the instructions and the protocol that it implements. Here's the I2C PIO program, for example: https://github.com/raspberrypi/pico-examples/blob/master/pio....
Re:Raspberry Pi Pico W: your $6 IoT platform
by jazzyjackson on Friday July 01, 2022 @12:55AM
(#31942540)
Hey I managed to miss that raspberrypi repo since I jumped straight into my neopixel project, many thanks
There's nothing irrelevant about an RPI Pico: it has more RAM than most, it has excellent documentation and example code, it has PIOs that are incredibly versatile, it's available everywhere, and it's dirt cheap.
For quick prototyping I use MicroPython, otherwise I use C. Why should I have to learn Rust for something simple?