ca’nt run the test in the course, get this all the time:
Name “machine” is not defined [name-defined]
Hi.
Did you follow all the steps in the ebook?
do you have Thonny IDE connected to the board?
Make sure you have installed micro python on the board and that it is establishing a connection with it.
at which page of the ebook are you at?
Regards.
Sara
I got rid of the error by rebooting, but when i try to run “2_3_blinking_led.py” on page 60, nothings happens.
In the shell window, I get this:
>>> %Run -c $EDITOR_CONTENT
MPY: soft reboot
>>>
My HW is RP2040 Pico W-2023.
The LED is on all the time, also when i do this:
MicroPython v1.22.2 on 2024-02-22; Raspberry Pi Pico W with RP2040
Type “help()” for more information.
>>> print(‘Hello’)
Hello
>>> from machine import Pin
>>> led = Pin(‘LED’, Pin.OUT)
>>> led.value(0)
>>>