User Manual

Recommended AVR Studio 4 linker options for projects using the Pololu AVR Library.
Special option necessary for Orangutan X2
If you are using one of the newer Orangutan X2s that comes with a ATmega1284p processor, you must define
the _X2_1284 preprocessor macro so that the Pololu AVR Library Header files know that you are programming
an X2 rather than an Orangutan SVP-1284. To include this in AVR Studio 4, select Project > Configuration
Options > Custom Options. Click on [All files] and add: -D_X2_1284. This compilation option is included in
both the AVR Studio and Linux-based example programs for the Orangutan X2 1284.
Pololu AVR C/C++ Library Users Guide © 2001–2015 Pololu Corporation
4. Using the Pololu AVR Library for your own projects Page 40 of 43