• 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

LED dimmer switch project

Q&A Forum › Category: Questions › LED dimmer switch project
0 Vote Up Vote Down
Thomas Sheppard asked 4 years ago

I’m working on this project and can’t get the script to run. I’m using Thony and nodemcu and loaded the code for that device from github. When I try to run I get this error:
File “<stdin>”, line 11
SyntaxError: invalid syntax
Thanks
I’m a noob and tried what little I know so far and no luck. 
 

Question Tags: ESP8266
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi Thomas.
Can you try to copy and paste the code again?
I’ve just tried it and it worked just fine.
Check all the indentation. What’s the micropython firmware version that you are using?
I’ve tested it with the esp32-idf4-20210202-v1.14.bin firmware version.
Regards,
Sara

0 Vote Up Vote Down
Thomas Sheppard answered 4 years ago

Hi Sara
I tried copy/paste several times with no luck however I have found another problem. I tried to save a different script(working) to the esp main.py file and got a long winded error. I opened main.py and nothing was there and I can’t move anything to the esp without error. I’m using thony because I couldn’t get upycraft to recognize usb. I can’t find enough documentation for thony to really be useful to such a noob but I tried upycraft again and now it works so I will go back and start over with upycraft. So thanks for the help and I’m sure I’ll be back.
Cheers
Tom

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Ok, Tom.
Let me know if you have more issues.
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 Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition 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.