Hello Paul
It would be great if you add the following "feature".
It will not cost you more than 5 minutes.
When you compile a sketch for an Arduino board you can detect in code for which board the code has been compiled.
For example if you compile for "Arduino Uno" you will get the compiler switch ARDUINO_AVR_UNO defined.
Sadly none of the Teensy boards can be detecetd in code as easy as this.
It would be very helpful if you add to the file "platform.txt" the following commandline parameter:
-DTEENSY_{build.board}
With that you could use in code:
#if defined(TEENSY_TEENSY31)
// This is a Teensy 3.1 board
#endif
For more details please see my posting on Arduino.StackExchange.com:
http://arduino.stackexchange.com/a/21257/18754
It would be great if you add the following "feature".
It will not cost you more than 5 minutes.
When you compile a sketch for an Arduino board you can detect in code for which board the code has been compiled.
For example if you compile for "Arduino Uno" you will get the compiler switch ARDUINO_AVR_UNO defined.
Sadly none of the Teensy boards can be detecetd in code as easy as this.
It would be very helpful if you add to the file "platform.txt" the following commandline parameter:
-DTEENSY_{build.board}
With that you could use in code:
#if defined(TEENSY_TEENSY31)
// This is a Teensy 3.1 board
#endif
For more details please see my posting on Arduino.StackExchange.com:
http://arduino.stackexchange.com/a/21257/18754