From http://www.arduino.cc/cgi-bin/yabb2/YaB ... 716581/285
To all Arduino Mega Users:
To make the WiShield work on mega follow the NKC tutorial on wiring up the Ethernet shield http://mcukits.com/2009/04/06/arduino-e ... mega-hack/
and make the following changes to spi.h (in hardware\libraries\wishield):
- Code: Select all
#define SPI0_SS_BIT BIT0
#define SPI0_SCLK_BIT BIT1
#define SPI0_MOSI_BIT BIT2
#define SPI0_MISO_BIT BIT3
#define SPI0_Init() PRR0 = 0x00;\
DDRB |= SPI0_SS_BIT|SPI0_SCLK_BIT|SPI0_MOSI_BIT|LEDConn_BIT;\
DDRB &= ~SPI0_MISO_BIT;\
PORTB = SPI0_SS_BIT;\
SPCR = 0x50;\
SPSR = 0x01
#define ZG2100_CS_BIT BIT0
#define LEDConn_BIT BIT5
I'll probably put it up on the wiki too. Thanks for the work
