[Swlug] Pi Pico - getting started.
Rhys Sage
rhys_sage at yahoo.com
Fri Apr 15 15:11:11 UTC 2022
I found the flatpak version of Thonny worked better and allowed access to the Pi Pico. First problem resolved. Then, of course, I figured out how to get the original Thonny to work - except it crashes when saving so I'm just using the flatpak version.
Now I'm trying to run the simple test program...
from machine import Pin, Timer
led = Pin(25, Pin.OUT)
timer = Timer()
def blink(timer):
led.toggle()
timer.init(freq=2.5, mode=Timer.PERIODIC, callback=blink)
They say it should be saved by Thonny as main.py (which I have done) but so far, no joy in getting it to run when I power on the Pi. It works just fine when run via Thonny. I've even tried Main.py in case they forgot to hit shift in the documentation.
Just to make sure it's not hanging up because it was attached to a laptop I've tried running it from a USB power bank.
All very interesting and intriguing. Baby steps. I have big plans for my Pi Picos when I've got past the baby steps.
If anybody has any suggestions I'd love to hear them. For the moment I'm going to retreat to my cave to solder some header pins onto my Pi Pico.
Rhys Sage
More information about the Swlug
mailing list