TinyCircuits Forum

TinyCircuits Products => TinyDuino Processors & TinyShields => Topic started by: CloudCityEvan on December 15, 2015, 01:07:36 PM

Title: Clarification of comment in TinyShield_NRF8001_BLE_Example.ino
Post by: CloudCityEvan on December 15, 2015, 01:07:36 PM
Hi!

I've been working with the TinyShield_NRF8001_BLE_Example project to learn how the TinyShield nRF8001 communicates and I noticed the following comment:

Code: [Select]
//when using this project in the Arduino IDE, delete the following include and rename UART.h to UART.ino

...and I just had some questions:


I was building off the TinyShield_NRF8001_BLE_Example.ino and finally read that comment and I got to wondering, so any advice on that will be appreciated. :)

Thanks in advance!

-Evan

Title: Re: Clarification of comment in TinyShield_NRF8001_BLE_Example.ino
Post by: Ben Rose on December 17, 2015, 06:37:42 PM
That's just to allow for a difference in how the compiler(or maybe pre-compiler) is set up in codebender versus the IDE- The IDE wants other .ino files in the sketch folder which it includes automatically, while codebender wants .cpp which are included manually. This may have changed since I wrote the example.

Unfortunately the whole NRF8001 library from Nordic is pretty ungainly in codebender- all those included files have small changes.

Another thought I have is that you might want to check out some alternate software- https://github.com/sandeepmistry/arduino-BLEPeripheral is a library for the NRF8001 that avoids NRF studio with a different set of complexities- maybe it's interesting to you.
Title: Re: Clarification of comment in TinyShield_NRF8001_BLE_Example.ino
Post by: CloudCityEvan on December 23, 2015, 06:11:25 PM
Thanks! I'll check it out! :)