Page 1 of 1

"Import machine" not working on RPi pico

Posted: Sun Jan 31, 2021 4:31 pm
by Odolyte
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 :

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)
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

Re: "Import machine" not working on RPi pico

Posted: Mon Feb 01, 2021 12:02 am
by jimmo