|
|
@ -49,12 +49,13 @@
|
|
|
|
SOCKET testSocket;
|
|
|
|
SOCKET testSocket;
|
|
|
|
byte ip[6];
|
|
|
|
byte ip[6];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void configureSPI() {
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
|
|
void setup () {
|
|
|
|
Configure pins and registers required for SPI communication.
|
|
|
|
Serial.begin(9600);
|
|
|
|
|
|
|
|
Serial.println("Setup enter...");
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
// Configure SPI
|
|
|
|
|
|
|
|
// Configure I/O pins
|
|
|
|
// Configure I/O pins
|
|
|
|
pinMode(PIN_DATA_OUT, OUTPUT);
|
|
|
|
pinMode(PIN_DATA_OUT, OUTPUT);
|
|
|
|
pinMode(PIN_DATA_IN, INPUT);
|
|
|
|
pinMode(PIN_DATA_IN, INPUT);
|
|
|
@ -81,7 +82,15 @@ void setup () {
|
|
|
|
dummy = SPSR;
|
|
|
|
dummy = SPSR;
|
|
|
|
dummy = SPDR;
|
|
|
|
dummy = SPDR;
|
|
|
|
delay(10);
|
|
|
|
delay(10);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void setup () {
|
|
|
|
|
|
|
|
Serial.begin(9600);
|
|
|
|
|
|
|
|
Serial.println("Setup enter...");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
configureSPI();
|
|
|
|
|
|
|
|
|
|
|
|
// I thought this wasn't needed but seems like it is.
|
|
|
|
// I thought this wasn't needed but seems like it is.
|
|
|
|
Serial.println("Triggering reset...");
|
|
|
|
Serial.println("Triggering reset...");
|
|
|
|