TinyShield_NRF8001_BLE_Example + TinyScreen device conflict

prototype-engineer

  • Newbie
  • *
    • Posts: 4
    • View Profile
Hi,

Trying to build a simple wireless sensor control, passing values/variable back and forth over BLE to iPhone, using tiny screen to display status of wireless sensor.

Working from TinyShield_NRF8001_BLE_Example adding Tinyscreen functionality to sketch seemed easiest way to implement something that also writes back (not only reads).

However, writing to screen stalls NRF8001. In first instance, app writes BLE status to screen and consequently stops NRF8001 from working/discoverable

Thanks in advance,


Ben Rose

  • Administrator
  • Hero Member
  • *****
    • Posts: 392
    • View Profile
Hi,

Both boards use SPI for data, but the NRF8001 uses a different bit order. You'll need to make sure it's correct before transferring data to the baord.

The smartwatch example on codebender at https://codebender.cc/sketch:91833 is set up to use both at the same time, so it's a good place to start. If you look at UART.h, you'll see calls to SPI.setBitOrder()- passing LSBFIRST at the beginning, MSBFIRST at the end. You'll need do this before/after calls to functions like lib_aci_send_data().

Let me know how this goes for you,
Ben


 

SMF spam blocked by CleanTalk