#include<SPI.h>
volatile byte Slavereceived;
//int SS = 10
int count = 0;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
SPI.begin ();
SPI.beginTransaction(SPISettings(500000, LSBFIRST, SPI_MODE0));
delay(5);
//digitalWrite(SS, LOW);
//Slavereceived = SPI.transfer(0x80);
}
void loop() {
// put your main code here, to run repeatedly:
// if(count==255)
// count = 0;
digitalWrite(SS, LOW);
Slavereceived = SPI.transfer(0x80);
//delay(1);
//digitalWrite(SS, HIGH);
//count++;
//Serial.println(count, BIN);
}