Skip to content

Commit

Permalink
drivers/st7735: add init sequence support
Browse files Browse the repository at this point in the history
  • Loading branch information
gschorcht committed Sep 22, 2023
1 parent bb07d52 commit 630edf8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions drivers/st77xx/include/st77xx_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,20 @@ extern "C" {
#define ST77XX_PARAM_IF_MODE
#endif

#if MODULE_LCD_INIT_SEQUENCE || DOXYGEN
#ifndef ST77XX_PARAM_INIT_SEQ
#define ST77XX_PARAM_INIT_SEQ (NULL) /**< Init sequence not used by default */
#endif
#ifndef ST77XX_PARAM_INIT_SEQ_LEN
#define ST77XX_PARAM_INIT_SEQ_LEN 0 /**< Init sequence length is 0 by default */
#endif
/** Additional default parameters if init sequence is enabled */
#define ST77XX_PARAMS_INIT .init_seq = ST77XX_PARAM_INIT_SEQ, \
.init_seq_len = ST77XX_PARAM_INIT_SEQ_LEN,
#else /* MODULE_LCD_INIT_SEQUENCE */
#define ST77XX_PARAMS_INIT
#endif /* MODULE_LCD_INIT_SEQUENCE */

/**
* @brief Default params
*
Expand Down Expand Up @@ -214,6 +228,7 @@ extern "C" {
.rotation = ST77XX_PARAM_ROTATION, \
.offset_x = ST77XX_PARAM_OFFSET_X, \
.offset_y = ST77XX_PARAM_OFFSET_Y, \
ST77XX_PARAMS_INIT \
}
#endif /* ST77XX_PARAMS */
/** @} */
Expand Down

0 comments on commit 630edf8

Please sign in to comment.