|
Edited by Johan at 2015-5-16 22:30
I'm using the following pins:
P01 : 3.3V
P25 : GND
P15 : CE
P19 : MOSI
P21 : MISO
P23 : SCLK
P24 : CSN
So I'm currently using:
RF24 radio(SUNXI_GPI(17), SUNXI_GPI(10), "/dev/spidev0.0");
Because I found the following in the OPi manual:
CON3-P15 UART2_CTS PI17
CON3-P24 SPI0_CS0 PI10
Maybe I'm not interpreting the manual correctly.
Edit: I'm using librf24-sunxi at the moment ( git clone https://github.com/mplatov/librf24-sunxi )
I did modprobe spi-sun7i and compiled the library for librf24-sun7i.
|
|