PIG2 - SD Card Info Special Thanks to Chad Hendrickson for this info - as very difficult to find. This is what goes on the SD card to be able to program/customize the PIG2 - file is called pig1.0.10.txt Also a little bit of documentation about the INPUTS and OUTPUTS: ############################################################################### # INPUTS # # Variables: # # invertIN# [0 = OFF, 1 = ON] # This variable inverts the logic.  If it is set to # "1" then the logic is inverted.  OFF is ON and ON  # is OFF. # # By default, when the PIG II gets a voltage # the INPUT is considered ON.  However, certain # signal sources like switches will show a voltage # when they are OFF and no voltage when they are ON. # If you are connecting to a switch, the invertIN # for that input should be set to 1. # # mapIN#-OUT#  [0 = OFF, 1 = ON] # By default, IN0 controls OUT0, IN1 controls OUT1, etc. # You may want one input to control multiple outputs. # # For example, if you want IN0 to turn on two mods, one # connected to OUT0 and one connected to OUT2, then these # settings should be made: # # mapIN0-OUT0 = 1 # mapIN0-OUT1 = 0 # mapIN0-OUT2 = 1 # mapIN0-OUT3 = 0 # # One output can be controlled by multiple inputs as well. # If mapIN0-OUT0 = 1 and mapIN3-OUT0 = 1, then OUT0 will # turn on if either IN0 or IN3 are on. # ############################################################################### ############################################################################### # OUTPUTS # # Variables # Timed variables are set in milliseconds.   # 1 second = 1000 milliseconds. (ms) # # powerMaxOUT# and powerMinOUT#  [Minimum 0, Maximum 254] # You may not want your mod to get full power when it's on.  Or you # may not want your mod to be completely off when the input is off. # Output power is set with a number 0 to 254.  0 is no power, 254 is # full power. # # If you want a mod on IN0 to be dimly lit, and then go to full power # you set the variables: # # powerMaxOUT0 = 254 # powerMinOUT0 = 100 # # You may want a small motor connected to OUT3 to spin slowly, but when # IN3 is active, you want it to spin faster, but not at full speed.  you # would then use the variables: # # powerMaxOUT0 = 100 # powerMinOUT0 = 50 # # You will have to experiment with the settings for your particular mod # to get the look you want. # # # fadeOn# and fadeOff#  [Minimum 0, Maximum 65535] # fadeON and fadeOff control the speed at which the output # turns on and off in milliseconds.  By default, they are both # set to 0, which means the output goes on INSTANTLY and off # INSTANTLY.  If you would like your mod to go from minimum # power to maximum power more slowly, you raise that number. # # A 1 second fade on with a 3 second fade off for OUT0 would # look like this: # # fadeOn0 = 1000 # fadeOff0 = 3000 # # delayOn# and delayOff#  [Minimum 0, Maximum 65535] # delayOn and delayOff control how long after the input is # triggered (turned on or turned off) that the output will # react.  If you want OUT2 to go ON when a switch is   # closed and then STAY ON for 5 seconds after the switch is # opened, you would use the setting: # # delayOff2 = 5000 # # You may have an insert light that blinks in 1/2 second  # intervals and then goes solid, but you only want the # mod on OUT1 to turn on when the light is solidly lit. In that # case you would use the setting: # # delayOn1 = 550 # # This would only turn on the output if the insert light is on # for longer than half a second, or 500 ms.  For this example I # added a 50 ms buffer to make certain the timing works. # # andOUT#  [0 = OFF, 2 - 4] # If you have IN1 and IN3 controlling OUT3 then the default action # is that if IN1 *OR* IN3 are on then OUT3 will turn on.  You may # want OUT3 to only turn on when IN1 *AND* IN3 are on.  In that case # you would turn on the "AND" logic for that output. # # We do this by choosing how many inputs have to be ON before the # output will go ON.  If you have two inputs controlling one output # but you want to both be on before the output turns on, you would # use: # # andOUT3 = 2 # # If you want three IN#'s to be on before the OUT# goes on, then it # would be: # # andOUT3 = 3 # # There is an added configuration to make this interesting.  If you # have three IN#s controlling one OUT#, you can set the andOUT# to # be only 2.  This gives the added ability to turn on OUT# when only # 2 out of 3 inputs is ON. # # # mapGI#  [0 = OFF, 1 = ON] # If you want your mod to turn on and off with the General # Illumination on your machine, you turn on mapGI#. # # mapGI0 = 1 # mapGI1 = 0 # # OUT0 will now turn on and off with the assigned input and GI. # OUT1 will ignore the GI lights and turn on and off with # its assigned inputs only. # # noInterruptOUT#  [Minimum = 0, Maximum = 65535] # Changes in the state of an input will interrupt the current action. # noInterruptOUT sets how long the output will lock out interruptions. # # Assume you set OUT2 to fade on for 3 seconds and then turn off. # If a switch is pressed but 1 second after being pressed, the switch is # released, the fade will stop after 1 second and the mod will turn off. # # You may want a momentary press to go through the whole 3 second fade on # before the mod turns off.  You would set: # # noInterruptOUT2 = 3000 # ###############################################################################