examples/peripherals/spi_master/main/spi_master_example_main.c
//Send a command to the ILI9341. Uses spi_device_transmit, which waits until the transfer is complete.
Send a command to the ILI9341. Uses spi_device_transmit, which waits until the transfer is complete.
Send a command to the ILI9341 . Uses spi_device_transmit which waits until the transfer is complete .
void ili_cmd(spi_device_handle_t spi, const uint8_t cmd) 
{
    esp_err_t ret;
    spi_transaction_t t;
    memset(&t, 0, sizeof(t));       
    t.length=8;                     
    t.tx_buffer=&cmd;               
    t.user=(void*)0;                
    ret=spi_device_transmit(spi, &t);  
    assert(ret==ESP_OK);            
}
void ili_cmd ( spi_device_handle_t spi , const uint8_t cmd ) { esp_err_t ret ; spi_transaction_t t ; memset ( & t , 0 , sizeof ( t ) ) ; t . length = 8 ; t . tx_buffer = & cmd ; t . user = ( void * ) 0 ; ret = spi_device_transmit ( spi , & t ) ; assert ( ret == ESP_OK ) ; }
Send a command to the ILI9341.
Send a command to the ILI9341 .
//Zero out the transaction //Command is 8 bits //The data is the cmd itself //D/C needs to be set to 0 //Transmit! //Should have had no issues.