In communicating with max31855k thermocouple chip, found the clock (sck) running too fast, max 5mhz from data sheet.
Changing 5000000 in "SPI.beginTransaction(SPISettings(5000000, MSBFIRST, SPI_MODE0));" did not change sck. Tried various numbers 400 to 100000000 with no effect.
Had to resort to old code:-
SPI.setClockDivider(16);
SPI.setBitOrder(MSBFIRST);
SPI.setDataMode(SPI_MODE0);
Am I missing something or is the IDE wrong ?
Also trying to access the on board sd card, what is the actual chip select pin so I can pulse and scope it ?
Code example does not give pin number
// MKRZero SD: SDCARD_SS_PIN
const int chipSelect = SDCARD_SS_PIN;
Many thanks in anticipation.