MC2300

From MinecraftOnline
Jump to navigation Jump to search


ROM Get
About
ID MC2300
Type SI3O
Self-Triggering No
Clickable No
Input Single
Output Three
Sign Format
First line ROM GET
Second line [MC2300]
Third line Filename
Craftbook Page

MC2300 is a Craftbook IC that reads binary data from a file and sets its outputs according to the contents of that file.

Details

  • Second Line
    • [MC2300]
  • Third Line
    • Filename required.
      • Specifies the name of the file to read from.
      • Only letters, numbers, underscores and hyphens are intended to be used in the filename.
      • The file is stored in the server's rom directory, with a .dat extension.


When the IC receives a high input, it reads the first line of its associated file. Each character in that line corresponds to an output, starting with the first character for the first output.

  • A character of 1 sets the corresponding output high.
  • Any other character sets the corresponding output low.
  • If the file does not contain enough characters for all outputs, the remaining outputs are set low.

The IC only reads the file when its input is high. When its input is low, the outputs are left unchanged.

If the specified file does not already exist, it is created automatically when the IC is loaded.

Examples

Basic ROM read

line1:
line2: [MC2300]
line3: Example
line4:

If the first line of rom/Example.dat contains:

101

The IC sets its first and third outputs high, and its second output low. Any additional outputs are also set low.

See Also