Teensy (Arduino IDE) and MCP23S17 with RGB Rotary encoders – 16 step sequencer part 1

First step in using the MCP23s17 port expander chips to monitor the rotary encoders for push button and turn feedback. These are the Sparkfun RGB rotary encoders. This setup uses interrupts not polling.