• 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

Unable to servo control by esp8266 in micropython

Q&A Forum › Category: ESP32 › Unable to servo control by esp8266 in micropython
0 Vote Up Vote Down
B. Jobsis asked 6 years ago

LS,

I was unable to execute the while loop example on page 74. It would not end.

With some luck I found that I had to do 4 x enter to be able to see the result of the loop.

Please clarify that in the future releases of yout manual for other newbies.

regards, Barry Jobsis

Question Tags: while
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi Barry.
I’m sorry, but I don’t know what while loop you are referring to. What version of the MicroPython eBook are you following?
There’s a loop on page 75, but that has nothing to do with servos.
Can you please provide more details?
Regards,
Sara

0 Vote Up Vote Down
B. Jobsis answered 5 years ago

Sara,
Sorry, I don’t how the title mixed up but my question does not concern a servo control but only the while loop function used in the  uPyCraft IDE  command line. 
The only thing I wanted to mention:
could you update your manual to state that there are several enter’s (3 or more) necessary to end the expression of the while loop.
Regards, Barry
rem: this also refers to the FOR loop and maybe other commands.

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

Hi Barry.
You are right.
If we’re typing those commands on the shell, we need to enter 4 spaces to get out of the loop.
Thanks for noticing that.
I’ll add that note in the next eBook update.
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.