Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 4:95305d4b0544, committed 2014-10-21
- Comitter:
- dudanian
- Date:
- Tue Oct 21 06:14:58 2014 +0000
- Parent:
- 3:3b04a122e508
- Child:
- 5:56daa8c0697d
- Commit message:
- Testing inner class docs
Changed in this revision
| TLC5940Servo.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/TLC5940Servo.h Tue Oct 21 06:06:30 2014 +0000
+++ b/TLC5940Servo.h Tue Oct 21 06:14:58 2014 +0000
@@ -37,6 +37,11 @@
class Servo {
public:
Servo();
+ /**
+ * Set the servo position, normalised to it's full range
+ *
+ * @param percent A normalised number 0.0-1.0 to represent the full range.
+ */
void write(float percent);
void calibrate(float range=0.0005, float degrees=45.0);
float read();
TLC5940 16 Servo Controller