Use FlexTimer2 instead of AVR Timer1 if Teensy 3.1