More switches (I2C example)
The Teensy 3.1 has 34 pins, but what happens in you need more, or can’t use all the pins for buttons because some are needed for LEDs? One option is to use a matrix of switches which I will cover in a different article. But an exceptionally cool way is the use the I2C bus. ...http://teensyhauptwerk.wordpress.com/2014/01/17/more-switches-i2c-example/