For some reason my UNO is hanging on any call to the SPI library. I have tried manually setting up the SPI port instead of calling SPI.begin and then things will hang on SPI.transfer(0x7f)
It's as if the library isn't linking properly. I do not get any compile errors. I've been banging my head against this for hours. UNO, Win8.1
With this code the LED blinks 3 times only:
#include <SPI.h>
int led1 = 13;
void setup() {
pinMode(led1, OUTPUT);
blinkLED();
blinkLED();
blinkLED();
SPI.begin();
blinkLED();
blinkLED();
blinkLED();
}
void blinkLED(void) {
digitalWrite(led1, HIGH);
delay(200);
digitalWrite(led1, LOW);
delay(200);
}
void loop() {}