Code: Select all
import machine
import utime
led = machine.Pin("LED", machine.Pin.OUT)
count = 0
led.off()
while count < 5:
led.toggle()
utime.sleep(0.1)
led.toggle()
count = count + 1
utime.sleep(0.5)
Code: Select all
import machine
import utime
led = machine.Pin("LED", machine.Pin.OUT)
count = 0
led.off()
while count < 5:
led.toggle()
utime.sleep(0.1)
led.toggle()
count = count + 1
utime.sleep(0.5)
Does that mean the Pico doesn't have a boot.py privilege then?beetle wrote: ↑Sat Aug 27, 2022 3:23 pmRissy, the code you show flashes the Led 5 times. exactly 5 times. As it happens I was putting the latest micropython on to a new rpi PicoW (V1.19.1) so just incase a bug had crept in as theres no stable release showing as yet I put your code on the board and ran it. 5 nice green flashes.
Edit: I see you have been putting in more info since I posted this about the code being in a boot.py. I tried to rename my flashing.py to boot.py but got some errors from Thonny. Possibly something to do with Thonny only having a Pico interpreter setting and not a PicoW interpreter. ??
Weird one for people to note, that one is!