"Import machine" not working on RPi pico
Posted: Sun Jan 31, 2021 4:31 pm
Hi,
with last micropython image : "adafruit-circuitpython-raspberry_pi_pico-fr-6.2.0-beta.1.uf2"
a print ("hello world") works fine but when i try to make the onboard led blink with :
i get an error on the first line saying that the "machine module" is missing.
What did i do wrong?
Thanks for your help
Odo
with last micropython image : "adafruit-circuitpython-raspberry_pi_pico-fr-6.2.0-beta.1.uf2"
a print ("hello world") works fine but when i try to make the onboard led blink with :
Code: Select all
import machine
import utime
led_onboard = machine.Pin(25, machine.Pin.OUT)
while True:
led_onboard.value(1)
utime.sleep(1)
led_onboard.value(0)
utime.sleep(1)
What did i do wrong?
Thanks for your help
Odo