|
|
@ -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);
|
|
|
@ -82,6 +83,14 @@ void setup () {
|
|
|
|
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...");
|
|
|
|