Use field toggle for switching the motor on / off

This commit is contained in:
Sam El-Husseini
2017-10-04 17:04:26 -04:00
parent b18b8333d0
commit 6a719e7718
5 changed files with 25 additions and 2 deletions

View File

@ -37,6 +37,9 @@
"output.start|param|out": "the output connection that the motor is connected to",
"output.stop": "Turn motor off.",
"output.stop|param|out": "the output connection that the motor is connected to",
"output.switchMotor": "Switch the motor on or off.",
"output.switchMotor|param|on": "1 to turn the motor on, 0 to turn it off",
"output.switchMotor|param|out": "the output connection that the motor is connected to",
"output.turn": "Turn a motor on for a specified number of milliseconds.",
"output.turn|param|ms": "the number of milliseconds to turn the motor on, eg: 500",
"output.turn|param|out": "the output connection that the motor is connected to",

View File

@ -33,6 +33,7 @@
"output.setSpeed|block": "set motor %out| speed to %speed",
"output.start|block": "turn motor %out|on",
"output.stop|block": "turn motor %out|off",
"output.switchMotor|block": "turn motor %out|%on",
"output.turn|block": "turn motor %out| on for %ms|milliseconds",
"output|block": "output",
"screen.drawText|block": "print %text| at x: %x| y: %y",