0

The error:

Traceback (most recent call last): File C:\Users\jobsa\Downloads\lcd.py, line 1, in module import machine ModuleNotFoundError: No module named 'machine'

I am trying to make an LCD display text. I need the address of the LCD on a Raspberry Pi Pico.

user4157124
  • 2,809
  • 13
  • 27
  • 42
  • 1
    If you're just running `import machine` that should always work. You didn't post your code so I guess you're doing something more complicated and it's hard for anyone to debug it. Can you post a [mcve]? Also, what version of MicroPython are you using? You can see it from `sys.version`. – David Grayson Aug 09 '23 at 17:39

1 Answers1

0

It seems that you're running the python file directly on your computer, rather than the pico. In order to run it on the pico, you can use a variety of programs, and Thonny is a good place to start. You'll have to configure it to run on the pico, here's a Tom's Hardware tutorial that may help.