diff --git a/badge23/components/gc9a01/gc9a01.h b/badge23/components/gc9a01/gc9a01.h
index aa587a2f07b6156908cbb282521bb9c55d0d9bdf..99b7cce17d598c9a6e0e27bc4dbef5b9b33332c6 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 7209dd96da4ae614acd0c38703445309f14153c1..274b16d796ce742e03e2a5649116605e627feb40 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)