Content deleted Content added
No edit summary |
|||
Line 22: | Line 22: | ||
<syntaxhighlight lang="lua" line="1"> |
<syntaxhighlight lang="lua" line="1"> |
||
local servo = GetPartFromPort(1,"Servo") --Main Variant |
local servo = GetPartFromPort(1,"Servo") --Main Variant |
||
local switch = GetPartFromPort(2,"Switch") --A switch must be connected to a servo and a PowerCell. |
local switch = GetPartFromPort(2,"Switch") --A switch must be connected to a servo and a PowerCell with part attachment. |
||
switch:Configure({SwitchValue=false}) |
switch:Configure({SwitchValue=false}) |