Package virtualbreadboard.arduino
Class Servo
java.lang.Object
virtualbreadboard.arduino.Servo
An improved version of this would collect all the time delays and implement them
in a single call to drive which processes multiple
NOTES:
- Version 22/01/2015 ( Created )
- Author:
- James
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
attach()
Attaches it to a thread..void
attach
(int pin) boolean
attached()
void
detach()
void
drive()
void
moveToAngle
(int angle, int durationMs) void
poll()
void
write
(int angle) void
writeMicroseconds
(int position)
-
Constructor Details
-
Servo
public Servo(int pin) -
Servo
public Servo()
-
-
Method Details
-
attach
public void attach(int pin) -
attached
public boolean attached() -
attach
public void attach()Attaches it to a thread.. -
detach
public void detach() -
writeMicroseconds
public void writeMicroseconds(int position) -
write
public void write(int angle) -
poll
public void poll() -
moveToAngle
public void moveToAngle(int angle, int durationMs) -
drive
public void drive()
-