Content deleted Content added
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
}} |
}} |
||
'''Servo''' is similar to [[Motor]], but when activated by electricity, it cannot spin automatically. It can be interacted to add the angles of hinge with the configuration of "AngleStep", by [[Polysilicon]] |
'''Servo''' is similar to [[Motor]], but when activated by electricity, it cannot spin automatically. It can be interacted to add the angles of hinge with the configuration of "AngleStep", by [[Polysilicon]], FlipFlop mode Polysilicon can set its angles to 0. |
||
==Description== |
==Description== |
||
Line 14: | Line 14: | ||
==Misc.== |
==Misc.== |
||
===Programming=== |
|||
Servo:SetAngle(number) |
|||
====Example==== |
|||
<syntaxhighlight lang="lua" line="1"> |
|||
local servo = GetPartFromPort(1, "Servo") |
|||
servo:SetAngle(15) -- Set the angle of servo's hinge. |
|||
</syntaxhighlight> |
|||
===Configuration=== |
===Configuration=== |
||
{{#invoke:GetPartInfo|getField|ConfigurationLarge}} |
{{#invoke:GetPartInfo|getField|ConfigurationLarge}} |