MCU ATSAMD21G18A .. HELP !!

Hi all,

I'm currently trying some examples about acceleration measurement
The equipment I'm using are sparksfun accelerometer ADXL362 and arduino Due board. The protocol used in connection is SPI protocol and the example that I'm working on at the time is ADXL362 + Arduino: Using Interrupts to Implement Motion-Activated Sleep - Documents - MEMS Inertial Sensors - EngineerZone

Everytime I compile the code, an error message appears :
Arduino: 1.6.7 (Windows 10), Board: "Arduino Due (Programming Port)"

WARNING: library Low-Power-9692ae155b0395c1a0676c063995cf06fe761203 claims to run on [avr architecture(s) and may be incompatible with your current board which runs on samd] architecture(s).
In file included from C:\Users\M.Hussain\Documents\Arduino\libraries\annem-ADXL362-0e44374\libraries\Low-Power-9692ae155b0395c1a0676c063995cf06fe761203\Examples\standbyExternalInterruptSAMD21\standbyExternalInterruptSAMD21.ino:2:0:

C:\Users\M.Hussain\Documents\Arduino\libraries\annem-ADXL362-0e44374\libraries\Low-Power-9692ae155b0395c1a0676c063995cf06fe761203/LowPower.h:152:6: error: #error "Please ensure chosen MCU is ATSAMD21G18A."

#error "Please ensure chosen MCU is ATSAMD21G18A."

^

exit status 1
Error compiling.

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.

I tried to figure it out, I downloaded a modified version of the lowpower library but the same thing happened.

I need to know how it can be solved, or at least what "Please ensure chosen MCU is ATSAMD21G18A." means.

Thanks all,

Use v1.6.5 of the IDE.

MHussain:
I need to know how it can be solved, or at least what "Please ensure chosen MCU is ATSAMD21G18A." means.

That means that it's supposed to be ran on the Arduino Zero board which uses the ATSAMD21G18A microcontroller. The Due uses the AT91SAM3X8E microcontroller. So you would need to use a Zero or find some code that's meant to work with the Due. If you're using GitHub - rocketscream/Low-Power: Low Power Library for Arduino then that library doesn't support the Arduino Due.

Thanks a lot