SPI not working with MBED (was: Performance of XIAO with Sharp Memory Display)

measure it with an oscilloscope.

According to the controller datasheet, the maximum frequency of the clock is 2 MHz, the waveform will be a perfect square wave even with mbed.