Clarification of comment in TinyShield_NRF8001_BLE_Example.ino

CloudCityEvan

  • Full Member
  • ***
    • Posts: 14
  • Senior iOS Developer | twitter: @interactivlogic
    • View Profile
    • Cloud City Development
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


Ben Rose

  • Administrator
  • Hero Member
  • *****
    • Posts: 392
    • View Profile
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
    • View Profile
    • Cloud City Development
Thanks! I'll check it out! :)
Evan K. Stone | Senior iOS Developer | Cloud City Development | http://www.cloudcity.io


 

SMF spam blocked by CleanTalk