Update display drivers

This commit is contained in:
fvanroie 2021-02-21 20:50:26 +01:00
parent 748fe57334
commit 8452cbaecd
4 changed files with 46 additions and 43 deletions

View File

@ -1,3 +1,6 @@
/* MIT License - Copyright (c) 2020 Francis Van Roie
For full license information read the LICENSE file in the project folder */
#include "hasp_drv_display.h" #include "hasp_drv_display.h"
#include "tft_espi_drv.h" #include "tft_espi_drv.h"
//#include "fsmc_ili9341.h" //#include "fsmc_ili9341.h"

View File

@ -1,3 +1,6 @@
/* MIT License - Copyright (c) 2020 Francis Van Roie
For full license information read the LICENSE file in the project folder */
#include "hasp_drv_touch.h" #include "hasp_drv_touch.h"
#include "hasp/hasp.h" #include "hasp/hasp.h"
#include "lvgl.h" #include "lvgl.h"

View File

@ -1,7 +1,5 @@
/** /* MIT License - Copyright (c) 2020 Francis Van Roie
* @file tft_espi_drv.cpp For full license information read the LICENSE file in the project folder */
*
*/
/********************* /*********************
* INCLUDES * INCLUDES
@ -163,17 +161,18 @@ static void tftShowConfig(TFT_eSPI& tft)
setup_t tftSetup; setup_t tftSetup;
tft.getSetup(tftSetup); tft.getSetup(tftSetup);
LOG_VERBOSE(TAG_TFT, F("TFT_eSPI : v%s"), tftSetup.version.c_str()); // LOG_VERBOSE(TAG_TFT, F("TFT_eSPI : v%s"), tftSetup.version.c_str());
#if defined(ARDUINO_ARCH_ESP8266) || defined(ARDUINO_ARCH_ESP32) // #if defined(ARDUINO_ARCH_ESP8266) || defined(ARDUINO_ARCH_ESP32)
LOG_VERBOSE(TAG_TFT, F("Processor : ESP%x"), tftSetup.esp); // LOG_VERBOSE(TAG_TFT, F("Processor : ESP%x"), tftSetup.esp);
#else // #else
LOG_VERBOSE(TAG_TFT, F("Processor : STM%x"), tftSetup.esp); // LOG_VERBOSE(TAG_TFT, F("Processor : STM%x"), tftSetup.esp);
#endif // #endif
LOG_VERBOSE(TAG_TFT, F("CPU freq. : %i MHz"), haspDevice.get_cpu_frequency()); // LOG_VERBOSE(TAG_TFT, F("CPU freq. : %i MHz"), haspDevice.get_cpu_frequency());
// #if defined(ARDUINO_ARCH_ESP8266)
// LOG_VERBOSE(TAG_TFT, F("Voltage : %2.2f V"), ESP.getVcc() / 918.0); // 918 empirically determined
// #endif
#if defined(ARDUINO_ARCH_ESP8266)
LOG_VERBOSE(TAG_TFT, F("Voltage : %2.2f V"), ESP.getVcc() / 918.0); // 918 empirically determined
#endif
LOG_VERBOSE(TAG_TFT, F("Transactns : %s"), (tftSetup.trans == 1) ? PSTR("Yes") : PSTR("No")); LOG_VERBOSE(TAG_TFT, F("Transactns : %s"), (tftSetup.trans == 1) ? PSTR("Yes") : PSTR("No"));
LOG_VERBOSE(TAG_TFT, F("Interface : %s"), (tftSetup.serial == 1) ? PSTR("SPI") : PSTR("Parallel")); LOG_VERBOSE(TAG_TFT, F("Interface : %s"), (tftSetup.serial == 1) ? PSTR("SPI") : PSTR("Parallel"));
#if defined(ARDUINO_ARCH_ESP8266) #if defined(ARDUINO_ARCH_ESP8266)

View File

@ -1,7 +1,5 @@
/** /* MIT License - Copyright (c) 2020 Francis Van Roie
* @file tft_espi_drv.h For full license information read the LICENSE file in the project folder */
*
*/
#ifndef TFT_ESPI_DRV_H #ifndef TFT_ESPI_DRV_H
#define TFT_ESPI_DRV_H #define TFT_ESPI_DRV_H