-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added a new Example : Servo Stop #45
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To make the example consistent with the naming convention used in official Arduino examples, please rename the sketch folder and file ServoStop
.
Please add a comment containing a short description of the purpose of the sketch and the required circuit. You can check the library's other examples to see the format.
examples/Servo-Stop/Servo-Stop.ino
Outdated
#define trigPin 4 | ||
#define echoPin 2 | ||
|
||
Servo myservo; // create servo object to control a servo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Servo myservo; // create servo object to control a servo | |
Servo myservo; // create Servo object to control a servo |
Use correct class name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was not done.
All significant requested changes have been resolved. Thanks!
Greetings,
I am Madhur Dixit, a third year student pursuing Bachelors degree in Computer Science and Engineering from Vellore Institute of Technology, Vellore, India.
I am looking forward to making valuable contributions to the Portenta repositories by writing MicroPython examples. Since Portenta board is not released yet I still have practiced with MicroPython on my NodeMCU. I am also planning on porting Arduino examples to Portenta and thus testing my MicroPython example codes on NodeMCU.
You can refer my work till now here:
https://github.com/Chester-King/NodeMCU-Micropython-Examples
Here is a simple PR which adds an example "servo-stop" which depicts the use of Servo with an Ultrasonic sensor. For convenience I have already Auto-Formatted the code.