• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

>>> from machine import Pin Traceback (most recent call last): File “”, line 1, in ModuleNotFoundError: No module named ‘machine’ >>>

Q&A Forum › Category: Raspberry Pi › >>> from machine import Pin Traceback (most recent call last): File “”, line 1, in ModuleNotFoundError: No module named ‘machine’ >>>
0 Vote Up Vote Down
wallace gardiner asked 3 months ago

from machine import Pin
led=pin(‘LED’,Pin.OUT)
led.value(1)

the above generates an error No module named “machine”

2 Answers
0 Vote Up Vote Down
wallace gardiner answered 3 months ago

OK GOT IT! You have to change the type of Interpretar! Tools>Option>Interpreter. I’m using MicroPytonRp2040 instead of the one at the top of the top of the list! Put the code in and keep changing the Interpreter setting until it works

 

Thanks Sara- Once I determined why it wasn’t talking to me, everything fell into place. Also had an absolutely DOA board from China that held me up until I determined it was junk!  Now busily porting code!

0 Vote Up Vote Down
Sara Santos Staff answered 3 months ago

Hi.
Is everything working as expected now?
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn LVGL: Build GUIs for ESP32 Projects – Version 1.5 July 7, 2025
  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.