BusPirate & SPI with MAX31855 Thermocouple
Good afternoon,
I have a arduino sketch that compiles fine and it runs my code as expected and I thought it would be neat to try and do the same thing with a bus pirate... further my lack of knowledge on SPI...
Digging through the library in the source I found
SPI.beginTransaction(SPISettings(4000000, MSBFIRST, SPI_MODE0)); // Defaults
data.bytes[3] = SPI.transfer(0x00);
data.bytes[2] = SPI.transfer(0x00);
data.bytes[1] = SPI.transfer(0x00);
data.bytes[0] = SPI.transfer(0x00);
SPI.endTransaction();
digitalWrite(cs, HIGH);
What I would like to understand is how to properly do the same thing with bus pirate syntax?
I know I need to use [ to pull CS low and it looks like it sends data, then reads data, then sends data exct...
Could someone help out with the syntax when you go into the SPI mode? and then perhaps what string to type in on the command line?
http://http://www.adafruit.com/datasheets/MAX6675.pdf
Datasheet for you folks.
Thank you much,
--Aaron