|
|
@ -59,8 +59,6 @@ void setup () {
|
|
|
|
Serial.begin(9600);
|
|
|
|
Serial.begin(9600);
|
|
|
|
Serial.println("Setup enter...");
|
|
|
|
Serial.println("Setup enter...");
|
|
|
|
|
|
|
|
|
|
|
|
Serial.print("SPCR: "); Serial.println(SPCR, BIN);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Configure SPI
|
|
|
|
// Configure SPI
|
|
|
|
// Configure I/O pins
|
|
|
|
// Configure I/O pins
|
|
|
|
pinMode(PIN_DATA_OUT, OUTPUT);
|
|
|
|
pinMode(PIN_DATA_OUT, OUTPUT);
|
|
|
@ -82,8 +80,6 @@ void setup () {
|
|
|
|
// 0 SPI Clock Rate Select 0 -- } fOSC/4 (SPR0 --> 0) ("Fastest" but see SPI2X in SPSR)
|
|
|
|
// 0 SPI Clock Rate Select 0 -- } fOSC/4 (SPR0 --> 0) ("Fastest" but see SPI2X in SPSR)
|
|
|
|
SPCR = (1<<SPE)| (1<<MSTR);
|
|
|
|
SPCR = (1<<SPE)| (1<<MSTR);
|
|
|
|
|
|
|
|
|
|
|
|
Serial.print("SPCR: "); Serial.println(SPCR, BIN);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Clear previous data and status (TODO: Determine if necessary/better way.)
|
|
|
|
// Clear previous data and status (TODO: Determine if necessary/better way.)
|
|
|
|
// (Based on Playground SPI example.)
|
|
|
|
// (Based on Playground SPI example.)
|
|
|
|
byte dummy;
|
|
|
|
byte dummy;
|
|
|
|