Sample Servo / LCD code for KL46Z. Display slider value on LCD and set servo position according to slider. Sample code for RS
Fork of Servo by
Demonstrate SLIDER, SERVO and LCD
Servo output is on port pin PTC1 Servo must be powered independently from KL46Z Delay of 1-2s out of reset caused by unknown issue.
Revision 4:66e69779ecc3, committed 2017-06-23
- Comitter:
- edware
- Date:
- Fri Jun 23 05:28:41 2017 +0000
- Parent:
- 3:36b69a7ced07
- Child:
- 5:b237e6e2ed77
- Commit message:
- Slider servo control with LCD feedback
Changed in this revision
Servo.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/Servo.h Thu Sep 02 17:34:43 2010 +0000 +++ b/Servo.h Fri Jun 23 05:28:41 2017 +0000 @@ -81,7 +81,7 @@ * @param range Pulsewidth range from center (1.5ms) to maximum/minimum position in seconds * @param degrees Angle from centre to maximum/minimum position in degrees */ - void calibrate(float range = 0.0005, float degrees = 45.0); + void calibrate(float range = 0.0005, float degrees = 90.0); /** Shorthand for the write and read functions */ Servo& operator= (float percent);