Really? Will it work on 10MHz as well?
The reason why I am asking this question is because I somewhere read that we can not use it at frequencies divided by 2,4,8.... So for Arduino UNO, 10MHz doesnt fall into this range.
The 10000000 defines the max setting and whether SPI will run at that speed depends on the Arduino you are using and you did not reveal that until post #4, always a good idea to tell people from the start which Arduino you are using.
A UNO runs a 16Mhz CPU clock, so can be set to SPISettings(16000000, but SPISettings(10000000 will result in it running at 8Mhz.
Nick_Pyner:
The library comes with the IDE and is with all the others. You will probably need a dedicated editor like NP++ to work on it. NP++ is a freebie.
Thanks for reply. Can you please guide how to locate a particular library and change the functionality of different functions in IDE.
srnet:
The 10000000 defines the max setting and whether SPI will run at that speed depends on the Arduino you are using and you did not reveal that until post #4, always a good idea to tell people from the start which Arduino you are using.
A UNO runs a 16Mhz CPU clock, so can be set to SPISettings(16000000, but SPISettings(10000000 will result in it running at 8Mhz.
Thanks for reply. Actually I have still not bought any board. UNO was in my mind, but want to be sure before buying. Is it possible to achieve this exact 10MHz speed on any other Arduino Board?
tahirsengine:
Thanks for reply. Can you please guide how to locate a particular library and change the functionality of different functions in IDE.
As I said, the library is with all the other libraries, i.e. in \libraries,
and you change the functionality by editing the text using the NP++ editor I referred to.
Since you are asking these questions, I think you should also question whether you actually need to do this.