There are 12 boxes in the PiHut Let it Glow calendar. The first couple of days also illustrate that Yarg will need a bit of work for some of them. As such, I won’t be posting every calendar day! I’m also going to consider this post series successful if I complete them in some of the time after Christmas. There is a lot on at this time of year, and I’ve done no preparation for these posts.
Uncompress the file (on a Mac, the finder will do that with a couple of double-clicks).
Connect the pico to the Mac holding down the bootsel button (see the linked PiHut guide above, if that’s unfamiliar. It’s harmless to try both – use their day 1 to explore, and then come back here to do Yarg Day 1)
Copy yarg-lang-pico-0.2.0.uf2 to the RPI-RP2 drive, and wait for the pico to restart:
Connect to the USB serial port it shares. Some exploring may be needed to find it in your serial program of choice. VS Code is a bit big to download, but seems to be free and available on all the PC platforms. The ‘Serial Monitor’ Extension seems to work well. Recent testing in putty on windows suggests Yarg doesn’t like that option (yet!)
‘Serial’ connected to Pico device (115200, 8N1, Local Echo, send CR+LF on return)
Type in, line by line, the hello_led example (I cut and paste from this post!)
const NUM_BANK0_GPIOS = 30;
place struct { uint32@0x014 gpio_out_set; uint32@0x024 gpio_oe_set; } @xd0000000 sio_hw;
I recently bought a maker calendar from ThePiHut (no relationship other than customer!). I went for the ‘Let it Glow‘ version. Hopefully I can post along this December, using Yarg to complete all the projects.
I have carefully made a release 0.2.0 which should have everything I need, but problem one was that I forgot to actually upload the release file when I made it. So there is no README with instructions in it.
So task one is to fix the bug! I think that’s checkout that tag, rebuild the release, and then upload the correct tarball!