I am trying to run an Arduino sketch using the RedBearLab nRF51822. The sketch is designed to transfer data to and from a microprocessor and an Android device via bluetooth low energy. The sketch works fine using Arduino Uno+nRF8001, but I want to use the nRF51822 because it is capable of sending more data per connection interval than the nRF8001. I cannot get the code to compile when I use the nRF51822, and I am running into the following errors/warnings:
WARNING: library EEPROM claims to run on [avr] architecture(s) and may be incompatible with your current board which runs on [RBL_nRF51822] architecture(s).
WARNING: library BLE SDK for Arduino claims to run on [avr] architecture(s) and may be incompatible with your current board which runs on [RBL_nRF51822] architecture(s).
In file included from ble_bandwidth_test_1.ino:7:0: C:\Users\Nick\Documents\Arduino\libraries\RBL_nRF8001_1/RBL_nRF8001_1.h:21:23: fatal error: avr/sleep.h: No such file or directory #include <avr/sleep.h> ^ How do I address the architecture incompatibility and the avr/sleep.h error? Also, just general tips on using the nRF51822 with Arduino would be appreciated. Thanks! Nick