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.