We will be using a MUX to output negative and positive voltages, so I wrote code to output either HIGH (positive) or LOW (negative) for the MUX logic to use and determine whether the outputted voltage should be negative or positive.