|
| 1 | + |
| 2 | +# Kconfig file for package ST7789_SPI |
| 3 | +menuconfig PKG_USING_ST7789_SPI |
| 4 | + bool "ST7789 driver package for RT-Thread using SPI interface." |
| 5 | + default n |
| 6 | + |
| 7 | +if PKG_USING_ST7789_SPI |
| 8 | + config PKG_ST_7789_SPI_BUS_NAME |
| 9 | + string "spi bus name" |
| 10 | + default "spi0" |
| 11 | + |
| 12 | + config PKG_ST_7789_SPI_DEVICE_NAME |
| 13 | + string "spi device name" |
| 14 | + default "spi_lcd" |
| 15 | + |
| 16 | + config PKG_ST_7789_WIDTH |
| 17 | + int "Width of the LCD display" |
| 18 | + default 240 |
| 19 | + |
| 20 | + config PKG_ST_7789_HEIGHT |
| 21 | + int "Height of the LCD display" |
| 22 | + default 320 |
| 23 | + |
| 24 | + config PKG_ST_7789_DC_PIN |
| 25 | + int "DC pin connected to the LCD display" |
| 26 | + default 83 |
| 27 | + |
| 28 | + config PKG_ST_7789_RES_PIN |
| 29 | + int "RESET pin connected to the LCD display" |
| 30 | + default 47 |
| 31 | + |
| 32 | + config PKG_ST_7789_CS_PIN |
| 33 | + int "CS pin connected to the LCD display" |
| 34 | + default 5 |
| 35 | + |
| 36 | + config PKG_ST_7789_BLK_PIN |
| 37 | + int "Backlight pin connected to the LCD display" |
| 38 | + default 93 |
| 39 | + |
| 40 | + config PKG_USING_ST7789_SPI_SAMPLE |
| 41 | + bool "Enable st7789_spi sample" |
| 42 | + default n |
| 43 | + |
| 44 | + config PKG_ST7789_PATH |
| 45 | + string |
| 46 | + default "/packages/peripherals/ST7789" |
| 47 | + |
| 48 | + choice |
| 49 | + prompt "Version" |
| 50 | + default PKG_USING_ST7789_LATEST_VERSION |
| 51 | + help |
| 52 | + Select the package version |
| 53 | + |
| 54 | + config PKG_USING_ST7789_V100 |
| 55 | + bool "v1.0.0" |
| 56 | + |
| 57 | + config PKG_USING_ST7789_LATEST_VERSION |
| 58 | + bool "latest" |
| 59 | + endchoice |
| 60 | + |
| 61 | + config PKG_ST7789_VER |
| 62 | + string |
| 63 | + default "v1.0.0" if PKG_USING_ST7789_V100 |
| 64 | + default "latest" if PKG_USING_ST7789_LATEST_VERSION |
| 65 | + |
| 66 | +endif |
| 67 | + |
0 commit comments