Default configuration for ST77xx LCD controllers. More...
Default configuration for ST77xx LCD controllers.
Definition in file st77xx_params.h.
Go to the source code of this file.
Macros | |
#define | ST77XX_PARAM_SCREEN_IDS 0 |
Default screen identifiers. | |
#define | ST77XX_NUMOF ARRAY_SIZE(st77xx_params) |
Define the number of configured displays. | |
#define | ST77XX_SCREEN_NUMOF ARRAY_SIZE(st77xx_screen_ids) |
Define the number screens this display driver is attached to. | |
Variables | |
static const lcd_params_t | st77xx_params [] |
Configure LCD. | |
static const uint8_t | st77xx_screen_ids [] |
Configure screen identifiers. | |
Set default configuration parameters for the ST77xx | |
#define | ST77XX_PARAM_CNTRL ST77XX_CNTRL_ST7735 |
ST77xx controller variant. | |
#define | ST77XX_PARAM_SPI SPI_DEV(0) |
SPI device. | |
#define | ST77XX_PARAM_SPI_CLK SPI_CLK_5MHZ |
SPI clock frequency. | |
#define | ST77XX_PARAM_CS GPIO_PIN(2, 2) |
Chip Select pin. | |
#define | ST77XX_PARAM_DCX GPIO_PIN(3, 13) |
DCX pin. | |
#define | ST77XX_PARAM_RST GPIO_UNDEF |
Reset pin. | |
#define | ST77XX_PARAM_SPI_MODE SPI_MODE_0 |
SPI mode. | |
#define | ST77XX_PARAM_RGB 0 |
RGB mode enable. | |
#define | ST77XX_PARAM_INVERTED 0 |
Inverted mode enable. | |
#define | ST77XX_PARAM_NUM_LINES 160U |
Number of lines. | |
#define | ST77XX_PARAM_RGB_CHANNELS 128U |
Number of RGB channels (e.g. | |
#define | ST77XX_PARAM_ROTATION ST77XX_ROTATION_HORZ |
Rotation mode. | |
#define | ST77XX_PARAM_OFFSET_X 0 |
Horizontal offset. | |
#define | ST77XX_PARAM_OFFSET_Y 0 |
Vertival offset. | |
#define | ST77XX_PARAM_IF_SPI |
Default interface params if SPI serial interface is enabled. | |
#define | ST77XX_PARAM_IF_PAR |
Default interface params if MCU 8080 8-bit parallel interface is enabled. | |
#define | ST77XX_PARAM_IF_PAR_16BIT |
Additional default interface params if MCU 8080 16-bit parallel interface is enabled. | |
#define | ST77XX_PARAM_IF_MODE .mode = LCD_IF_PARALLEL_16BIT, |
Interface mode is MCU 8080 16-bit parallel. | |
#define | ST77XX_PARAMS |
Default params. | |
#define ST77XX_NUMOF ARRAY_SIZE(st77xx_params) |
Define the number of configured displays.
Definition at line 247 of file st77xx_params.h.
#define ST77XX_PARAM_CNTRL ST77XX_CNTRL_ST7735 |
ST77xx controller variant.
Definition at line 98 of file st77xx_params.h.
#define ST77XX_PARAM_CS GPIO_PIN(2, 2) |
Chip Select pin.
Definition at line 107 of file st77xx_params.h.
#define ST77XX_PARAM_DCX GPIO_PIN(3, 13) |
DCX pin.
Definition at line 110 of file st77xx_params.h.
#define ST77XX_PARAM_IF_MODE .mode = LCD_IF_PARALLEL_16BIT, |
Interface mode is MCU 8080 16-bit parallel.
Definition at line 181 of file st77xx_params.h.
#define ST77XX_PARAM_IF_PAR |
Default interface params if MCU 8080 8-bit parallel interface is enabled.
Definition at line 151 of file st77xx_params.h.
#define ST77XX_PARAM_IF_PAR_16BIT |
Additional default interface params if MCU 8080 16-bit parallel interface is enabled.
Definition at line 167 of file st77xx_params.h.
#define ST77XX_PARAM_IF_SPI |
Default interface params if SPI serial interface is enabled.
Definition at line 142 of file st77xx_params.h.
#define ST77XX_PARAM_INVERTED 0 |
Inverted mode enable.
Definition at line 122 of file st77xx_params.h.
#define ST77XX_PARAM_NUM_LINES 160U |
Number of lines.
Definition at line 125 of file st77xx_params.h.
#define ST77XX_PARAM_OFFSET_X 0 |
Horizontal offset.
Definition at line 134 of file st77xx_params.h.
#define ST77XX_PARAM_OFFSET_Y 0 |
Vertival offset.
Definition at line 137 of file st77xx_params.h.
#define ST77XX_PARAM_RGB 0 |
RGB mode enable.
Definition at line 119 of file st77xx_params.h.
#define ST77XX_PARAM_RGB_CHANNELS 128U |
#define ST77XX_PARAM_ROTATION ST77XX_ROTATION_HORZ |
Rotation mode.
Definition at line 131 of file st77xx_params.h.
#define ST77XX_PARAM_RST GPIO_UNDEF |
Reset pin.
Definition at line 113 of file st77xx_params.h.
#define ST77XX_PARAM_SCREEN_IDS 0 |
Default screen identifiers.
Definition at line 225 of file st77xx_params.h.
#define ST77XX_PARAM_SPI SPI_DEV(0) |
SPI device.
Definition at line 101 of file st77xx_params.h.
#define ST77XX_PARAM_SPI_CLK SPI_CLK_5MHZ |
SPI clock frequency.
Definition at line 104 of file st77xx_params.h.
#define ST77XX_PARAM_SPI_MODE SPI_MODE_0 |
SPI mode.
Definition at line 116 of file st77xx_params.h.
#define ST77XX_PARAMS |
Default params.
lcd_spi
, lcd_parallel and lcd_parallel_16bit
, a user defined parameter set ST77XX_PARAMS has to be defined. In the latter case lcd_params_t::spi must then be set to SPI_UNDEF for displays with MCU 8080 8-/16-bit parallel interfaces. Definition at line 202 of file st77xx_params.h.
#define ST77XX_SCREEN_NUMOF ARRAY_SIZE(st77xx_screen_ids) |
Define the number screens this display driver is attached to.
Definition at line 251 of file st77xx_params.h.
|
static |
|
static |
Configure screen identifiers.
Definition at line 239 of file st77xx_params.h.