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.

Juraj
  • 18,264
  • 4
  • 31
  • 49

1 Answers1

2

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.

Juraj
  • 18,264
  • 4
  • 31
  • 49