7 years, 8 months ago.  This question has been closed. Reason: Duplicate question

When I Use the SPI driver and Can't control GPIO Inpuits

I can no longer get gpio pins on different spi channels to operate as gpio.

Example using: SPI spi(P4_6, P4_7, P4_4);

I can no longer get toggle = new DigitalOut(P1_2); toggle = 1; toggle = 0;

It works until I call.... spi.format, spi.frequency or spi.write After that it stops working....?

Question relating to:

GR-PEACH is an Mbed enabled platform which combines the advantages of the Mbed ecosystem and Arduino UNO form factor.