TinyCircuits

Clarification of comment in TinyShield_NRF8001_BLE_Example.ino

CloudCityEvan

  • ***
  • 14
  • Senior iOS Developer | twitter: @interactivlogic
    • View Profile
    • Cloud City Development
Clarification of comment in TinyShield_NRF8001_BLE_Example.ino
« 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:

  • 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

Evan K. Stone | Senior iOS Developer | Cloud City Development | http://www.cloudcity.io

Re: Clarification of comment in TinyShield_NRF8001_BLE_Example.ino
« Reply #1 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.

CloudCityEvan

  • ***
  • 14
  • Senior iOS Developer | twitter: @interactivlogic
    • View Profile
    • Cloud City Development
Re: Clarification of comment in TinyShield_NRF8001_BLE_Example.ino
« Reply #2 on: December 23, 2015, 06:11:25 PM »
Thanks! I'll check it out! :)
Evan K. Stone | Senior iOS Developer | Cloud City Development | http://www.cloudcity.io