|
|
@ -95,6 +95,27 @@ SpiConfiguration SPI = SpiConfiguration();
|
|
|
|
|
|
|
|
|
|
|
|
/* ----------------------- */
|
|
|
|
/* ----------------------- */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* ------ WIZ810MJ ------ */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Wiz810MJ {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
Wiz810MJ(int resetPin);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
int _resetPin;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Wiz810MJ::Wiz810MJ(int resetPin) {
|
|
|
|
|
|
|
|
// TODO: We should really allow the chip-select pin to be set here?
|
|
|
|
|
|
|
|
// Or require that it's defined. (Currently in the library file 'types.h'.)
|
|
|
|
|
|
|
|
_resetPin = resetPin;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* ----------------------- */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// #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
|
|
|
|