user-1: I would like to identify the target where I'm downloading my Arduino code. Following this example:
How to get board type
I'm able to recognize for example Arduino Mini, etc.. but Arduino Every, quite new board is not in the list and I don't understand where to find the correct "define" name to add in the list.
Can someone help me?
Thanks Andrea.

user37622: According to documentation the macro to identify the Arduino board is generated as as ARDUINO_{build.board} where {build.board} is from boards.txt file of the 'platform'.
Nano Every has in boards.txt nona4809.build.board=AVR_NANO_EVERY.
So the macro to identify Nano Every is ARDUINO_AVR_NANO_EVERY.

-1: <p>I would like to identify the target where I'm downloading my Arduino code. Following this example:</p>
<p><a href="https://arduino.stackexchange.com/questions/21137/arduino-how-to-get-the-board-type-in-code">How to get board type</a></p>
<p>I'm able to recognize for example Arduino Mini, etc.. but Arduino Every, quite new board is not in the list and I don't understand where to find the correct &quot;define&quot; name to add in the list.
Can someone help me?
Thanks Andrea.</p>
 37622: <p>According to <a href="https://arduino.github.io/arduino-cli/latest/platform-specification/#boardstxt" rel="nofollow noreferrer">documentation</a> the macro to identify the Arduino board is generated as as <code>ARDUINO_{build.board}</code> where <code>{build.board}</code> is from boards.txt file of the 'platform'.</p>
<p>Nano Every has in boards.txt <code>nona4809.build.board=AVR_NANO_EVERY</code>.</p>
<p>So the macro to identify Nano Every is <code>ARDUINO_AVR_NANO_EVERY</code>.</p>
