Component/microcontroller

From OpenComputers: Rebooted
Jump to navigation Jump to search

Component: Microcontroller

This is the component provided by the Microcontroller Case.

These callbacks can only be called by the microcontroller itself, or its direct neighbors (i.e. other computers that share a face with the microcontroller). Note that since microcontrollers cannot access external components they cannot interact with each others microcontroller components, but a computer can access a neighbouring microcontroller.

Component name: `microcontroller`. Callbacks:

  • `setSideOpen(side: number, open: boolean): boolean`
Set whether network messages are sent via the specified side.
  • `start(): boolean`
Starts the microcontroller. Returns true if the state changed.
  • `isRunning(): boolean`
Returns whether the microcontroller is running.
  • `isSideOpen(side: number): boolean`
Get whether network messages are sent via the specified side.
  • `lastError(): string`
Returns the reason the microcontroller crashed, if applicable. Returns nil if no crash has occurred.
  • `stop(): boolean`
Stops the microcontroller. Returns true if the state changed.
Components Category Documentation
Components Core Components 3D Printer - Abstract Bus - Access Point - Chunkloader - Computer - Crafting - Data Card - Database - Debug - Drone - Drive - EEPROM - Experience - Filesystem - Generator - Geolyzer - GPU - Hologram - Internet - Inventory Controller - Leash - Microcontroller - Modem - Motion Sensor - Navigation - Net Splitter - Piston - Redstone - Redstone in Motion - Robot - Screen - Sign - Tank Controller - Tractor Beam - Transposer - Tunnel - World Sensor
Others Component Access - Signals
Cross-Mod Integration Applied Energistics