|
|
@ -39,6 +39,7 @@
|
|
|
|
#include <WIZ810MJ.h>
|
|
|
|
#include <WIZ810MJ.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* --------- SPI --------- */
|
|
|
|
|
|
|
|
|
|
|
|
// Define SPI-related pins
|
|
|
|
// Define SPI-related pins
|
|
|
|
#define PIN_DATA_OUT 11 // MOSI (Master Out / Slave In)
|
|
|
|
#define PIN_DATA_OUT 11 // MOSI (Master Out / Slave In)
|
|
|
@ -46,6 +47,17 @@
|
|
|
|
#define PIN_SPI_CLOCK 13 // SCK (Serial Clock)
|
|
|
|
#define PIN_SPI_CLOCK 13 // SCK (Serial Clock)
|
|
|
|
#define PIN_SLAVE_SELECT 10 // SS (Slave Select)
|
|
|
|
#define PIN_SLAVE_SELECT 10 // SS (Slave Select)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class SPI {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
static void begin(void);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void SPI::begin(void) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* ----------------------- */
|
|
|
|
|
|
|
|
|
|
|
|
// #define PIN_RESET 9 // WIZnet module /RESET
|
|
|
|
// #define PIN_RESET 9 // WIZnet module /RESET
|
|
|
|
|
|
|
|
|
|
|
|
#define PIN_RESET 8 // WIZnet module /RESET
|
|
|
|
#define PIN_RESET 8 // WIZnet module /RESET
|
|
|
|