If you are using “custom hardware” like having a naked 328p on a breadboard and you get an error like “pins_arduino.h: No such file or directory” when trying to compile, just add the following line to the relevant boards.txt:

atmegaXXX_XX.build.variant=arduino:standard

The complete block in your boards.txt could look like this:

atmega328bb.build.mcu=atmega328p
atmega328bb.build.f_cpu=8000000L
atmega328bb.build.core=arduino:arduino
atmega328bb.build.variant=arduino:standard

bare ATMEGA328P

 

 

Advertisements