• 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 1 year 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 1 year 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 1 year 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 1 year 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 Released] Build Web Servers with ESP32 and ESP8266 (version 1.0) October 27, 2020
  • [eBook Updated] Download Build ESP32-CAM Projects using Arduino IDE (version 1.1) August 31, 2020

You must be logged in to view this content.

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

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