rei-vilo/Serial_LCD — Issue #5: Arduino mega Board Issue
Author: rei-vilo
Created: 2012-02-15 09:03:51+00:00
State: open
Labels: Bug, chipKIT platform

Arduino mega board not recognised.

Please find a [b]bug-fix release[/b] with a bug-fix for the Arduino IDE:

* `__AVR__` is recognised by chipKIT MPIDE solely but not by Arduino IDE.
* Arduino IDE requires `__AVR_ATmega328P__` or similar.

Adapt `__AVR_ATmega328P__` to `__AVR_ATmega1280__`or `__AVR_ATmega2560__` based on your Arduino mega board.

In the .h files, please change the code from
```#if defined(__AVR__)```
to
```#if defined(__AVR__) || defined (__AVR_ATmega328P__)```
or simply add
```#define __AVR__```