non of them let me define different SPI pins (mosi, miso or clk).
Typically there are three lines common to all the devices:MISO (Master In Slave Out) - The Slave line for sending data to the master,MOSI (Master Out Slave In) - The Master line for sending data to the peripherals,SCK (Serial Clock) - The clock pulses which synchronize data transmission generated by the masterand one line specific for every device:SS (Slave Select) - the pin on each device that the master can use to enable and disable specific devices.When a device's Slave Select pin is low, it communicates with the master. When it's high, it ignores the master. This allows you to have multiple SPI devices sharing the same MISO, MOSI, and CLK lines
#define SS_PIN 10
#include "ethernet_comp.h"#include <Arduino.h>#include "Dhcp.h"#include "IPAddress.h"#include "utility/Enc28J60Network.h"#include "UIPClient.h"#include "UIPServer.h"#include "UIPUdp.h"
#define ENC28J60_CONTROL_CS SS#define SPI_MOSI MOSI#define SPI_MISO MISO#define SPI_SCK SCK#define SPI_SS SS
Code: [Select]#define ENC28J60_CONTROL_CS SS#define SPI_MOSI MOSI#define SPI_MISO MISO#define SPI_SCK SCK#define SPI_SS SS