Teensy LED_BUILTIN is different type than in Team Arduino variants

bperrybap

Well-known member
Starting in IDE 1.5.5 and then backported to the 1.0.6 release, LED_BUILTIN was changed from being a
const int to #define

While the difference will make no difference to most code, any code that is using LED_BUILTIN as conditional will break with the teensy defintion.

I happen to stumble into the issue with some of my code, while easy to fix, it is a compatibilty difference between teensy and the Team Arduino variants
when using newer IDEs.

--- bill
 
Back
Top