• 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

main.py vs Main.py

Q&A Forum › Category: ESP8266 › main.py vs Main.py
0 Vote Up Vote Down
Terrance Gray asked 5 years ago

Hi guys, This is my first time on the forum, so I hope this is the place to post this issue I had. I just got your MicroPython course and and have no experience in programming I ran into an issue creating my first MicroPython script with the main.py file. I actually named the file Main.py instead of main.py, and after uploading, the program ran as expected, but when I reset the wemos d1, the program wouldn’t run on it’s own. Pulled my hair out trying to figure what the issue was suspecting something different with the wemos D1 vs the recommended ESP8266 12E. I finally went back and followed again and found my error in naming the file. Just thought it might be useful to note that the file name is case sensitive. Thanks for the great work you guys do.

Question Tags: MicroPython
1 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi Terrance.
Thanks for your comment.
Yes, the name of the file must be main.py.
When you uploaded the Main.py file to your board, the IDE run that program using the board, but the program won’t run on itself when you reset the board. After resetting, only main.py and boot.py files will run by themselves.
I hope this is clear.
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

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 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.