public class PFMotorPort extends java.lang.Object implements BasicMotorPort
| Constructor and Description |
|---|
PFMotorPort(IRLink link,
int channel,
int slot) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the port, the port can not be used after this call.
|
void |
controlMotor(int power,
int mode) |
java.lang.String |
getName()
Return the string representing this port
|
boolean |
setPinMode(int mode)
Set the port pins up ready for use.
|
void |
setPWMMode(int mode) |
public PFMotorPort(IRLink link, int channel, int slot)
public void controlMotor(int power,
int mode)
controlMotor in interface BasicMotorPortpublic void setPWMMode(int mode)
setPWMMode in interface BasicMotorPortpublic void close()
IOPortpublic java.lang.String getName()
IOPortpublic boolean setPinMode(int mode)
IOPortsetPinMode in interface IOPortmode - The EV3 pin mode