This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SPI Pin assignment problem

Hello,

I am trying to use SPI on a mbed nRF51822 and am following the documentation suggestion. We've deleted all code except the minimum to try and track down the problem.

#include "mbed.h"
int main() {
    SPI device(p5, p6, p7);
}

As soon as it runs, LED1 and LED2 start flashing back and forth. The code is based on the SPI.h documentation and the pins are allowed according to the reference manual.

What am I missing?

Edit: format.

Related