Microcontroller

Microcontrollers are more restrictive versions of Computers. The key limitation is that they do not contain a slot for a Hard disk drive, and rely solely on a programmed EEPROM for specific functionality. They can not interact with external components!

Microcontrollers can be built by placing a Microcontroller case in an Assembler. Higher tier Microcontroller cases can take more components and upgrades (as well as higher tier components and upgrades). Microcontrollers take a limited subset of upgrades, and do not contain Upgrade or Card container slots. Graphics cards cannot be placed into the expansion slots either.

The following code snippet illustrates one particular usage of Microcontrollers. The program detects redstone signals (requires a redstone card), and uses a piston upgrade to push a block.

snippet.lua
local r,p = component.proxy(component.list("redstone")()), component.proxy(component.list("piston")())
 
while true do
    computer.pullSignal(0.5)
    if r.getInput(2) > 0 then
        p.push()
    end
end

Contents