The arduino site states: SPI: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK). These pins support SPI communication, which, although provided by the underlying hardware, is not currently included in the Arduino language.
In the forum though I find topics about the nano using SPI.
The arduino site states: SPI: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK). These pins support SPI communication, which, although provided by the underlying hardware, is not currently included in the Arduino language.
Where on earth does it say that? Certainly not here:
Yes you can. The SPI library uses those pins.
Here's a test sketch I was working on today.
D13, SCK, is connected to a shift register serial clock
D10, Latch, is connected to a shift register output register clock
D11, MOSI, is connected to a shift register Serial data in line.
When D5 is connected to GND, 11111111 is sent to the shift register.
When D5 is open (pulled high by internal pullup resistor) 00000000 is sent out.
SPI: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK). These pins support SPI communication, which, although provided by the underlying hardware, is not currently included in the Arduino language.
CrossRoads:
Yes you can. The SPI library uses those pins.
Thanks a lot. It is really strange that it is nowhere stated that the nano works with SPI.
Even wikipedia doesn't state it: Arduino (Plattform) – Wikipedia
Hey Nick,
calm down. I don't own a nano but I am just evaluating which board to buy.
If you don't have something useful to state like "I use it, it works" or "tried it - doesn't work" please don't post.
Btw: That you can compile somehting doesn't mean it works.
It's the same processor, it has the required pins, and the sketch compiles without errors. What more do you want? I don't have a nrf24L01 to hand to test it.
please be appreciative of the help you're getting. Nick is really helping you here.
BTW wikipedia is not a source of information about Arduino. There are several problems with their pages about Arduino but it's a pain to get them fixed.
thanks for your response. I am glad about any help here.
I felt offended by more or less stating that I am too lazy to test things myself by by cross posting. Both is not true as explained in my answers. Sneding me PMs and blocking my responses doesn't help either.
Maybe it was just a language issue. So let's leave it as this.
I think it is clear now that SPI on a nano works (also thanks to AWOL - yes happy now ). The question what the statement about SPI on this official arduino page http://www.arduino.cc/en/Main/ArduinoBoardNano means stays.
These pins support SPI communication, which, although provided by the underlying hardware, is not currently included in the Arduino language.
I take it to mean that, like I2C, there is/are no in-built simple function(s), like say "digitalRead/Write" or "analogRead/Write" to support SPI.
There is of course, an SPI library.