Skip to content

Is there a way to identify the board model/variant in the sketch? #1645

Answered by earlephilhower
CMB27 asked this question in Q&A
Discussion options

You must be logged in to vote

ARDUINO_<boardname> is defined on the gcc command line. Check boards.txt for the exact <variant>.build.board line (but it's normally pretty obvious).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@CMB27
Comment options

Answer selected by CMB27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants