Skip to content
Snippets Groups Projects
Commit cadcb712 authored by dx's avatar dx Committed by q3k
Browse files

add component to make display work non-hackily

parent fde9ca22
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment