From cadcb712e912222eb262234ea8a6f45f8fec804a Mon Sep 17 00:00:00 2001 From: dequis <dx@dxzone.com.ar> Date: Sun, 23 Apr 2023 23:24:18 +0200 Subject: [PATCH] add component to make display work non-hackily --- badge23/components/gc9a01/gc9a01.h | 19 ------------------- micropython/ports/esp32/CMakeLists.txt | 2 ++ 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/badge23/components/gc9a01/gc9a01.h b/badge23/components/gc9a01/gc9a01.h index aa587a2f07..99b7cce17d 100644 --- a/badge23/components/gc9a01/gc9a01.h +++ b/badge23/components/gc9a01/gc9a01.h @@ -8,25 +8,6 @@ #include "sdkconfig.h" #include <stdint.h> -#define CONFIG_GC9A01_Width 240 -#define CONFIG_GC9A01_Height 240 -//#define # CONFIG_USE_SPI1_HOST is not set -//#define # CONFIG_USE_SPI2_HOST is not set -#define CONFIG_USE_SPI3_HOST 1 -//#define # CONFIG_USE_SPI4_HOST is not set -#define CONFIG_GC9A01_SPI_HOST 2 -#define CONFIG_GC9A01_PIN_NUM_SCK 39 -#define CONFIG_GC9A01_PIN_NUM_MOSI 41 -#define CONFIG_GC9A01_PIN_NUM_CS 40 -#define CONFIG_GC9A01_PIN_NUM_DC 42 -#define CONFIG_GC9A01_SPI_SCK_FREQ_M 80 -//#define # CONFIG_GC9A01_CONTROL_BACK_LIGHT_USED is not set -#define CONFIG_GC9A01_RESET_USED 1 -#define CONFIG_GC9A01_PIN_NUM_RST 38 -#define CONFIG_GC9A01_BUFFER_MODE 1 -//#define # CONFIG_GC9A01_BUFFER_SCREEN_FAST_MODE is not set -//#define # end of GC9A01 LCD Config - #define GC9A01_Width CONFIG_GC9A01_Width #define GC9A01_Height CONFIG_GC9A01_Height diff --git a/micropython/ports/esp32/CMakeLists.txt b/micropython/ports/esp32/CMakeLists.txt index 7209dd96da..274b16d796 100644 --- a/micropython/ports/esp32/CMakeLists.txt +++ b/micropython/ports/esp32/CMakeLists.txt @@ -54,5 +54,7 @@ endforeach() configure_file(${CMAKE_BINARY_DIR}/sdkconfig.combined.in ${CMAKE_BINARY_DIR}/sdkconfig.combined COPYONLY) set(SDKCONFIG_DEFAULTS ${CMAKE_BINARY_DIR}/sdkconfig.combined) +list(APPEND EXTRA_COMPONENT_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/../../../badge23/components/") + # Define the project. project(micropython) -- GitLab