diff --git a/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde b/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde index c148601..2c7b3f7 100644 --- a/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde +++ b/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde @@ -47,13 +47,13 @@ #define PIN_SPI_CLOCK 13 // SCK (Serial Clock) #define PIN_SLAVE_SELECT 10 // SS (Slave Select) -class SPI { +class SpiConfiguration { public: static void begin(void); }; -void SPI::begin(void) { +void SpiConfiguration::begin(void) { /* Configure pins and registers required for SPI communication. @@ -91,6 +91,8 @@ void SPI::begin(void) { } +SpiConfiguration SPI = SpiConfiguration(); + /* ----------------------- */ // #define PIN_RESET 9 // WIZnet module /RESET @@ -143,7 +145,7 @@ void setup () { Serial.begin(9600); Serial.println("Setup enter..."); - SPI::begin(); + SPI.begin(); initModule();