TinyCircuits Forum
TinyCircuits Products => TinyDuino Processors & TinyShields => Topic started 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:
//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:
- Is the intent of the comment to advise us to rename UART.h to UART.ino, and then use that as the basis of future Arduino projects?
- Is there a problem with using TinyShield_NRF8001_BLE_Example.ino as a template for future work?
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
-
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.
-
Thanks! I'll check it out! :)