RedBearLab / Blend

Arduino-compatible boards (Blend and Blend Micro) with BLE (Atmega32u4 + nRF8001).
50 stars 14 forks source link

Addition SPI device #3

Open w-i-n-s opened 9 years ago

w-i-n-s commented 9 years ago

Hi, I try to use RFM73 transceiver (good description https://www.tindie.com/products/Heye/arduino-clone-with-24ghz-wireless) that have SPI interface and work perfectly. But wit Blend Micro not working at all (ble module eats everything from SPI).

Can you implement bit-banging SPI or advice me how I can reach it? repo https://github.com/heye/rfm73

XuGuohui commented 9 years ago

There is an API named ble_busy(), which return 1 if the BLE module is occupying the SPI for transmission and return 0 if the BLE Module is idle. You should put your code for other SPI device in a condition like:

if(!ble_busy) { // other SPI device code }

w-i-n-s commented 9 years ago

It not working. But I have 2 possibilities - BLE or RFM73. But I need both. What I need to do?