I already asked them and they still do not answer me ...
I have found in the datasheet of the ArbotiX-M chip (http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-42744-ATmega644P_Datasheet.pdf)the pins that correspond to MISO, MOSI, SCK and SS:
-SCK/PCINT15 – Port B, Bit 7– SCK: Master Clock output, Slave Clock input pin for SPI0 channel. When the SPI0 is enabledas a slave, this pin is configured as an input regardless of the setting of DDB7. When theSPI0 is enabled as a master, the data direction of this pin is controlled by DDB7. When thepin is forced to be an input, the pull-up can still be controlled by the PORTB7 bit.– PCINT15: Pin Change Interrupt source 15. The PB7 pin can serve as an external interruptsource.
-MISO/PCINT14 – Port B, Bit 6– MISO: Master Data input, Slave Data output pin for SPI channel. When the SPI0 is enabledas a master, this pin is configured as an input regardless of the setting of DDB6. When theSPI is enabled as a slave, the data direction of this pin is controlled by DDB6. When the pin isforced to be an input, the pull-up can still be controlled by the PORTB6 bit.– PCINT14: Pin Change Interrupt source 14. The PB6 pin can serve as an external interruptsource.
-MOSI/PCINT13 – Port B, Bit 5– MOSI: SPI Master Data output, Slave Data input for SPI channel. When the SPI0 is enabledas a slave, this pin is configured as an input regardless of the setting of DDB5. When the SPIis enabled as a master, the data direction of this pin is controlled by DDB5. When the pin isforced to be an input, the pull-up can still be controlled by the PORTB5 bit.– PCINT13: Pin Change Interrupt source 13. The PB5 pin can serve as an external interruptsource.
-SS/OC0B/PCINT12 – Port B, Bit 4– SS: Slave Port Select input. When the SPI is enabled as a slave, this pin is configured as aninput regardless of the setting of DDB4. As a slave, the SPI0 is activated when this pin isdriven low. When the SPI is enabled as a master, the data direction of this pin is controlled byDDB4. When the pin is forced to be an input, the pull-up can still be controlled by thePORTB4 bit.– OC0B: Output Compare Match B output. The PB4 pin can serve as an external output for theTimer/Counter0 Output Compare. The pin has to be configured as an output (DDB4 set “1”) toserve this function. The OC0B pin is also the output pin for the PWM mode timer function.– PCINT12: Pin Change Interrupt source 12. The PB4 pin can serve as an external interruptsource
What I understand is that each pin can get to behave in different ways or forms, for example the Port B, Bit 6, can be the MISO or an interruption. What I do not know is how to configure it, that is, what code should be set to work as MISO, MOSI, SCK and SS instead of pins with interruption for example ... I mean, I can not put only pin (4) to refer to the pin of the SS no?
Other question, i have to configurate the arduino.h library? because in this library i know that the following code appear:
#define PIN_SPI_SS (10)
#define PIN_SPI_MOSI (11)
#define PIN_SPI_MISO (12)
#define PIN_SPI_SCK (13)
static const uint8_t SS = PIN_SPI_SS;
static const uint8_t MOSI = PIN_SPI_MOSI;
static const uint8_t MISO = PIN_SPI_MISO;
static const uint8_t SCK = PIN_SPI_SCK;
But i don't know if i have to configure this library and i don´t know neither if there exists a library of arbotix.h...do anyone know?