All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lejos.robotics.DCMotor Maven / Gradle / Ivy

Go to download

leJOS (pronounced like the Spanish word "lejos" for "far") is a tiny Java Virtual Machine. In 2013 it was ported to the LEGO EV3 brick.

The newest version!
package lejos.robotics;

/**
 * Interface for a regular DC motor.
 * @author BB
 *
 */
public interface DCMotor extends BaseMotor{

    /**
     * Set the power level 0%-100% to be applied to the motor
     * @param power new motor power 0-100
     */
    public void setPower(int power);

    /**
     * Returns the current motor power setting.
     * @return current power 0-100
     */
    public int getPower();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy