-->
Page 1 of 1

Platform Define for library coders

PostPosted: Tue Apr 28, 2015 8:01 pm
by Makuna
I want to create a library that will work across platforms, but will have nuances per platform. This is common in many existing libraries.

__AVR__
__arm__
__MK20DX128__// Teensy 3.0
__MK20DX256__ // Teensy 3.1

But what is the define I should be using for esp8266?

Re: Platform Define for library coders

PostPosted: Tue Apr 28, 2015 9:25 pm
by igrr
if you enable verbose compiler output in the ide you'll see all the defines that are passed to the compiler (platform specific as well as board specific), ESP8266 is one of them.

Re: Platform Define for library coders

PostPosted: Tue Apr 28, 2015 9:31 pm
by Makuna
igrr wrote:if you enable verbose compiler output in the ide you'll see all the defines that are passed to the compiler (platform specific as well as board specific), ESP8266 is one of them.


Thanks, but will this define be supported going forward for this use?