Teensy compiler directive?

jim lee

Well-known member
I'm assuming there is a complier directive that tells the compiler that we're compiling for a teensy? I typically don't do platform specific code so I"m a little foggy on this. Something like..
C++:
#ifdef TEENSY
// include this code
#endif

Can some one copy paste this bit to me? I need to hide my..
C++:
 Serial1.addMemoryForRead(rx_buffer, sizeof(rx_buffer));
Line of code from the other Adruino platforms.

Thanks millions!

-jim lee
 
Back
Top