Clarification of comment in TinyShield_NRF8001_BLE_Example.ino

Started by CloudCityEvan, December 15, 2015, 01:07:36 PM

Previous topic - Next topic

CloudCityEvan

***
Full Member
Posts: 14
Senior iOS Developer | twitter: @interactivlogic
Location: San Francisco Bay Area, CA, USA
Logged
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

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

Ben Rose

Administrator
*****
Hero Member
Posts: 392
Logged
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

***
Full Member
Posts: 14
Senior iOS Developer | twitter: @interactivlogic
Location: San Francisco Bay Area, CA, USA
Logged
Thanks! I'll check it out! :)
Evan K. Stone | Senior iOS Developer | Cloud City Development | http://www.cloudcity.io

SMF spam blocked by CleanTalk