OSDN Git Service

lejos_NXJ_win32_0_5_0beta.zip
[nxt-jsp/lejos_nxj.git] / nxtOSEK / lejos_nxj / src / java / classes / lejos / nxt / BasicMotorPort.java
1 package lejos.nxt;
2
3 /**
4  * An abstraction for a motor port that supports RCX
5  * type motors, but not NXT motors with tachometers.
6  * 
7  * @author Lawrie Griffiths
8  *
9  */
10 public interface BasicMotorPort {
11         static public final int PWM_FLOAT = 0;
12         static public final int PWM_BRAKE = 1;
13         
14         public void controlMotor(int power, int mode);
15         
16         public void setPWMMode(int mode);
17 }