We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81dba7a commit f8b2ef3Copy full SHA for f8b2ef3
Ev3LangScala/src/ev3dev4s/lego/Motors.scala
@@ -86,4 +86,9 @@ object Motors {
86
val motor: Motor = motors(port)
87
motor.readPosition()
88
}
89
+
90
+ def setStopCommand(port:MotorPort,stopCommand: MotorStopCommand): Unit = handleUnpluggedMotor{
91
+ val motor = motors(port)
92
+ motor.writeStopAction(stopCommand)
93
+ }
94
0 commit comments