Updated RSIO (markdown)

Mikayla 2023-03-01 23:56:01 -05:00
parent 532498ee47
commit f3ecdb41a9

@ -48,4 +48,8 @@ local IO_PORT = {
U_ALARM = 24, -- active high, unit alarm U_ALARM = 24, -- active high, unit alarm
U_EMER_COOL = 25 -- active low, emergency coolant control U_EMER_COOL = 25 -- active low, emergency coolant control
} }
``` ```
The advantage this component provides is abstracting away the logic levels. For example, checking if an E-Stop is pressed (redstone signal is not present) can be done by checking if the port "is active", rather than having to know that for that particular input, logic LOW is pressed and logic HIGH is unpressed. For an output example, closing a valve is a an active low operation, since applying a redstone valve opens/disconnects a Mekanism redstone-sensitive tube/pipe.
This component also provides scaling functions for analog inputs and outputs, but this project currently doesn't use any analog I/O.