CONFIG // -------------------------------------------------- // Display Configuration // GC9A01 round TFT display (240x240) connected via SPI // -------------------------------------------------- DISPLAY_DRIVER GC9A01 DISPLAY_BUS SPI // SPI bus configuration SPI_MOSI 11 SPI_CLK 10 SPI_FREQ 60000000 // Display control pins DISPLAY_CS 9 DISPLAY_DC 8 DISPLAY_RST 14 DISPLAY_BL 2 // Display parameters DISPLAY_W 240 DISPLAY_H 240 DISPLAY_INVERT 1 DISPLAY_MIRROR_X 1 DISPLAY_BGR 1 // -------------------------------------------------- // I2C Bus Configuration // Used by the touch controller // -------------------------------------------------- I2C_SDA 6 I2C_SCL 7 I2C_FREQ 400000 // -------------------------------------------------- // Touch Screen Configuration // CST816 capacitive touch controller // -------------------------------------------------- TOUCH_DRIVER CST816 TOUCH_RST 13 ' Touch controller reset pin TOUCH_INT 5 ' Touch interrupt pin END_CONFIG // -------------------------------------------------- // Runtime Initialization // -------------------------------------------------- DISPLAY_INIT // Set display brightness (0-100%) DISPLAY_BRIGHTNESS(100) // Fill the screen with black color SCREEN_COLOR(#000000) WHILE 1 PAUSE 10 WEND