48 #error ILI9341_CS is undefined 50 #define tft_delay_us(a) os_delay_us(a) 53 #error ADDR_0 is undefined 56 #define TFT_DATA chip_addr(1) 57 #define TFT_COMMAND chip_addr(0) 106 chip_enable(ILI9341_RESET);
123 chip_disable(ILI9341_RESET);
MEMSPACE void tft_setRotation(uint8_t m)
Set Display rotation, applies to the master window only Set hardware display rotation and memory fill...
void tft_reset_disable()
disnable ILI9341 reset return: void
void spi_begin(uint32_t clock, int pin)
SPI chip enable function Function waits for current tranaction to finish before proceeding.
Master include file for project Includes all project includes and defines here.
void tft_spi_TX(uint8_t *data, int bytes, uint8_t command)
Transmit 8 bit data array.
MEMSPACE void tft_configRegister(void)
Initialize ILI9341 display.
void spi_waitReady()
SPI bus wrapper functions for multiple device support.
void tft_addr_init()
Initialize ILI9341 command/data GPIO return: void.
void tft_reset_enable()
enable ILI9341 reset return: void
void spi_end(uint8_t pin)
SPI chip disable function wait for current tranaction to finish!
void chip_select_init(uint8_t pin)
CHIP select HAL.
void tft_spi_begin()
Obtain SPI bus for TFT display, assert chip select return: void.
void spi_TXRX_buffer(const uint8_t *data, int count)
SPI write/read buffer.
void spi_RX_buffer(const uint8_t *data, int count)
SPI read buffer.
void tft_spi_init_slow()
Initialize TFT SPI clock speed and pin for slow speed Only used to read the CHIP ID return: void...
void tft_spi_end()
Release SPI bus from TFT display, deassert chip select return: void.
void tft_fillWin(window *win, uint16_t color)
Fill functions
uint32_t tft_clock
cahce of SPI clock devisor
MEMSPACE uint32_t tft_readId(void)
Read ILI9341 device ID should be 9341 This does not work for really high SPI clock speeds Make sure t...
ili9341 driver inspired by Adafruit ili9341 code All code in this file has been rewritten by Mike Gor...
void chip_addr_init()
ADDRESS select HAL.
void spi_TX_buffer(const uint8_t *data, int count)
SPI write buffer.
void tft_spi_TXRX(uint8_t *data, int bytes, uint8_t command)
Transmit and read 8 bit data array.
void tft_spi_RX(uint8_t *data, int bytes, uint8_t command)
read 8 bit data array
MEMSPACE window * tft_init(void)
Initialize TFT.
MEMSPACE void tft_window_init(window *win, int16_t x, int16_t y, int16_t w, int16_t h)
Initialize window structure we default values FIXME check x+w, y+h absolute limits against TFT limuts...
void tft_reset_init()
Initialize ILI9341 reset GPIO return: void.
void tft_spi_init_fast()
Initialize TFT SPI clock speed and pin for normal speed return: void.