Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 8 months ago.
Looking for simple example code - SPI , LoRa
Hi All
I'm very new to mbed. I have been dabbling with Arduino for quite a while, so I'm battling a bit to get to grips with working with ARM based systems.
I have Nucleo F401re devices, and I am trying to make a very simple (so I can start learning and understand) project where I want these two F401's to be able to send/receive data via LoRa units. On the one unit, I will also have a SIM808 unit which will send me SMS' each time I receive a specific bit of info.
The LoRa units I use are the ones from RS Components - https://za.rs-online.com/web/p/telemetry-modules/9033059/
I am pretty certain I am supposed to hook the units up as follow to the F401: PA5 -> LoRa pin 13 (SCLK) PA6 -> LoRa pin 14 (SDI) PA7 -> LoRa pin 15 (SDO) PA4 -> LoRa pin 16 (nSEL)
The SIM808 I have already been able to connect via Serial TX/RX, and my test code to send SMS when a button is pressed, works.
What is the simplest code that will show me - using SPI - how to communicate via LoRa units please?