[SOLVED] SPI Speed on Arduino Due - fixed at 4MHz ?

Hi All,

There are SPI Speed related topics, but I did not find what I looked for.

I successfully connected a SPI display to Arduino Due, but the speed is fixed at the default 4 MHz.

I would like to use higher speeds for faster display updates.

I tried with passing settings with higher clock to beginTransaction(), with no effect.

I also tried with setClockDivider(), also with no effect.

Of course I can download the processor document to look how to control the registers directly, and to try to understand the SPIClass of Arduino Due and the spi.c code of the SAM package, but I will never know the effective code of the object library used.

So I would appreciate getting some help or clues where my issue might come from.

Jean-Marc Zingg

Edit: it was a simple #if defined() error, my new code for DUE was not in effect. Too blind to see.

Depending on the type of display you have attached to your DUE, you might like to read the following link, ILI9341_due.
There is a thread for this over in the display section of the forum, Marek's thread

I use this library with my DUE and it works very well for my needs.


Paul - VK7KPA

You might want to post a link to the display and the library you are using.