nrf5/drivers: Updating ili9341 driver to set CS high after cmd or data write.

This commit is contained in:
Glenn Ruben Bakke 2017-01-09 17:51:16 +01:00
parent 6b976c410c
commit 2ac3b23c0e
1 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ static void cmd_write(uint8_t value)
hal_spi_master_tx_rx(mp_instance, 1, &value, NULL);
mp_hal_pin_low(mp_cs_pin);
mp_hal_pin_high(mp_cs_pin);
}
static void data_write(uint8_t value)
@ -59,7 +59,7 @@ static void data_write(uint8_t value)
hal_spi_master_tx_rx(mp_instance, 1, &value, NULL);
mp_hal_pin_low(mp_cs_pin);
mp_hal_pin_high(mp_cs_pin);
}
void driver_ili9341_init(NRF_SPI_Type * p_instance, pin_obj_t * p_cs_pin, pin_obj_t * p_dc_pin)