Microcontroller

The microcontroller is a part used to run code. When activated with a polysilicon, it will attempt to run its configured code value. Below is a diagram explaining how to place ports and ethernet cables for use with a microcontroller.

Microcontroller related parts

 * Port
 * EthernetCable
 * Keyboard
 * Microphone
 * Disk
 * Modem
 * Screen
 * TouchScreen
 * LifeSensor
 * Speaker
 * Instrument
 * Rail
 * StarMap
 * Telescope

Microcontrollers run on Pilot.lua, which is basically just normal lua with a few things added to interact with the game.

GetPartFromPort
Gets the first part it finds connected to the port

TriggerPort
Sends a trigger signal from a port

Beep
Makes the microcontroller beep

:Configure
Configure can be run on any part. It works like configuring with hammer tool.

:Trigger
Simulates the part receiving a trigger signal

:Connect
Connects to a part's event, such as a keyboard input.

Configuration
You can input code or a URL that leads directly to the code.