Code: Select all
spi_device_interface_config_t devcfg={
.clock_speed_hz=1000, //Clock out at 1000 Hz
.mode=0, //SPI mode 0
.spics_io_num=PIN_NUM_CS, //CS pin
.queue_size=1 //We want to be able to queue 1 transactions at a time
};