Skip to content

[feature request] Board specific defines are generic for some variants #6805

Closed
@sprior

Description

@sprior

I have noticed that ARDUINO_BOARD and the ARDUINO_**** #defines are nicely specific for some variants of ESP8266 but frustratingly generic on others.

Note that there is no way to use the current definitions to differentiate between NodeMCU 0.9 and NodeMCU 1.0 or the Adafruit HUZZAH.

Unless there is a compelling reason not to I'd suggest that it is desirable to be able to use preprocessor ifdefs to detect each variant of device.

Some examples from boards.txt are:

huzzah.name=Adafruit Feather HUZZAH ESP8266
huzzah.build.board=ESP8266_ESP12

inventone.name=Invent One
inventone.build.board=ESP8266_GENERIC

cw01.name=XinaBox CW01
cw01.build.board=ESP8266_GENERIC

nodemcu.name=NodeMCU 0.9 (ESP-12 Module)
nodemcu.build.board=ESP8266_NODEMCU

nodemcuv2.name=NodeMCU 1.0 (ESP-12E Module)
nodemcuv2.build.board=ESP8266_NODEMCU

espino.name=ESPino (ESP-12 Module)
espino.build.board=ESP8266_ESP12

espinotee.name=ThaiEasyElec's ESPino
espinotee.build.board=ESP8266_ESP13

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions