loboris / ESP32_TFT_library

Full featured TFT library for ESP32 with demo application
553 stars 219 forks source link

minor changes to compile in c++ project #7

Closed jkearins closed 6 years ago

jkearins commented 6 years ago

tft.h 1) add extern

// === Color names constants ===
extern const color_t TFT_BLACK;
...
extern const color_t TFT_PINK;

tft.c 1) esp_heap_alloc_caps.h -> esp_heap_caps.h

tftspi.h 1) add extern

// ==== Display type, DISP_TYPE_ILI9488 or DISP_TYPE_ILI9341 ====
extern uint8_t tft_disp_type;

spi_master_lobo.h 1) remove 'struct'

//typedef struct spi_lobo_device_t* spi_lobo_device_handle_t;  ///< Handle for a device on a SPI bus
//typedef struct spi_lobo_host_t* spi_lobo_host_handle_t;
//typedef struct spi_lobo_device_interface_config_t* spi_lobo_device_interface_config_handle_t;
typedef spi_lobo_device_t* spi_lobo_device_handle_t;  ///< Handle for a device on a SPI bus
typedef spi_lobo_host_t* spi_lobo_host_handle_t;
typedef spi_lobo_device_interface_config_t* spi_lobo_device_interface_config_handle_t;
loboris commented 6 years ago

Thank you. Done.