Arduino Mega ADK will be activated automatically in Arduino 1.5.5

See: https://github.com/arduino/Arduino/pull/1605
This commit is contained in:
Kristian Sloth Lauszus 2013-10-09 17:13:37 +02:00
parent 42fc48d129
commit 5cde2e07d3
3 changed files with 3 additions and 2 deletions

View file

@ -74,6 +74,7 @@ Currently the following boards are supported by the library:
The following boards need to be activated manually in [settings.h](settings.h): The following boards need to be activated manually in [settings.h](settings.h):
* Arduino Mega ADK * Arduino Mega ADK
* If you are using Arduino 1.5.5 or newer there is no need to activate the Arduino Mega ADK manually
* Black Widdow * Black Widdow
Simply set the corresponding value to 1 instead of 0. Simply set the corresponding value to 1 instead of 0.

View file

@ -23,7 +23,7 @@ e-mail : support@circuitsathome.com
#define _avrpins_h_ #define _avrpins_h_
// Support for these boards needs to be manually activated in settings.h or in a makefile // Support for these boards needs to be manually activated in settings.h or in a makefile
#if !defined(BOARD_MEGA_ADK) && defined(__AVR_ATmega2560__) && USE_UHS_MEGA_ADK #if !defined(BOARD_MEGA_ADK) && defined(__AVR_ATmega2560__) && (USE_UHS_MEGA_ADK || defined(ARDUINO_AVR_ADK))
#define BOARD_MEGA_ADK #define BOARD_MEGA_ADK
#elif !defined(BOARD_BLACK_WIDDOW) && USE_UHS_BLACK_WIDDOW #elif !defined(BOARD_BLACK_WIDDOW) && USE_UHS_BLACK_WIDDOW
#define BOARD_BLACK_WIDDOW #define BOARD_BLACK_WIDDOW

View file

@ -29,7 +29,7 @@
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
/* Set this to 1 if you are using an Arduino Mega ADK board with MAX3421e built-in */ /* Set this to 1 if you are using an Arduino Mega ADK board with MAX3421e built-in */
#define USE_UHS_MEGA_ADK 0 #define USE_UHS_MEGA_ADK 0 // If you are using Arduino 1.5.5 or newer there is no need to do this manually
/* Set this to 1 if you are using a Black Widdow */ /* Set this to 1 if you are using a Black Widdow */
#define USE_UHS_BLACK_WIDDOW 0 #define USE_UHS_BLACK_WIDDOW 0