Originally submitted here: https://github.com/arduino/Arduino/pull/125 here is the diff in Boards.h: ``` diff @@ -129,7 +129,7 @@ writePort(port, value, bitmask): Write an 8 bit port. #endif // Arduino Duemilanove, Diecimila, and NG -#if defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__) +#if defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__) || defined(__AVR_ATmega328__) #if defined(NUM_ANALOG_INPUTS) && NUM_ANALOG_INPUTS == 6 #define TOTAL_ANALOG_PINS 6 #define TOTAL_PINS 20 // 14 digital + 6 analog ```