Atmega328P PU vs AU

Dear all,

I'm new to Arduino and I am trying to figure out how to identify if the code is running inside an Atmega328P-PU or AU which has 2 extra analog pins.

Anyone has an idea?

Thanks for your time

    // Running on a chip with 8 analog inputs

This works because of the:

in boards.txt which selects hardware/arduino/variants/eightanaloginputs/pins_arduino.h which contains:

#define NUM_ANALOG_INPUTS           8

Amazing!! :slight_smile: Perfect and thanks a lot!

I used it as follows:

//Identify which uController is running this code
boolean fullFeatures = NUM_ANALOG_INPUTS == 8;

Cheers :slight_smile: