// start of main
SetAllDigital
Shift.SetOutput(DataPin)
Shift.SetClock(ClockPin)
High(ResetPin_R) // make output and set high
High(ResetPin_G) // make output and set high
Low(LE) // make output and set low
High(D_code) // reset the Decoder to enable
PORTB = 0
TRISB = %00000000 // make PORTB outputs
// make S1 and S2 switch inputs (assumes there are external pullups on the pins)
Input(s1)
Input(s2)
While true // durring RIDE the code jumps to here if switch = 1