1,004
edits
Hail12Pink (talk | contribs) No edit summary |
mNo edit summary |
||
(9 intermediate revisions by 6 users not shown) | |||
Line 1:
{{Object
|title1 = {{PAGENAME}}
|image1 =
|type = {{#invoke:GetPartInfo|getField|Type}}
|malleability={{#invoke:GetPartInfo|getField|Malleability}}▼
|durability={{#invoke:GetPartInfo|getField|Durability}}▼
|flammable={{#invoke:GetPartInfo|getField|Flammable}}▼
|recipe={{#invoke:GetPartInfo|getField|Recipe}}
|raw_recipe={{#invoke:GetPartInfo|getField|Raw recipe}}
|configuration={{#invoke:GetPartInfo|getField|Configuration}}
|consumes=[[Power]]
▲|malleability={{#invoke:GetPartInfo|getField|Malleability}}
|default_size={{#invoke:GetPartInfo|getField|DefaultSize}}
▲|durability={{#invoke:GetPartInfo|getField|Durability}}
|default_colour={{#invoke:GetPartInfo|getField|DefaultColor}}
▲|flammable={{#invoke:GetPartInfo|getField|Flammable}}
}}
The '''microcontroller''' is a part used to run code. When activated with a [[polysilicon]], it will attempt to run its configured code value. Microcontrollers run on Pilot.lua, which is basically just normal rbx.lua with a few things added to interact with the game. Visit the [[Programming]] page for more info. Below is a diagram explaining how to place [[Port|ports]] and [[EthernetCable|ethernet cables]] for use with a microcontroller.
[[File:MicrocontrollerDiagram.png|caption]]
== Microcontroller related parts ==
Line 29 ⟶ 32:
* [[StarMap]]
* [[Telescope]]
== Microcontroller globals ==
Line 43 ⟶ 44:
=== Beep() ===
Makes the
<code> Beep(1) --beeps with a pitch of 1 </code>
Line 80 ⟶ 81:
Keyboard:Connect("TextInputted", FuncName) --runs the function when keyboard gets input </nowiki> </code>
==Pilot.lua Wiki==
For more information about microntroller coding refer to this: https://github.com/iimurpyh/pilot-lua/wiki
==In-game Description==
Line 85 ⟶ 89:
==Configuration==
You can input code or a URL that leads directly to the code.
▲{{#invoke:GetPartInfo|getField|ConfigurationLarge}}
[[Category:Parts]]
|