Loading...
Searching...
No Matches

These configuration parameters are used by auto_init when the the integration of U8G2 graphic library for monochome displays to Display device generic API is enabled. More...

Detailed Description

These configuration parameters are used by auto_init when the the integration of U8G2 graphic library for monochome displays to Display device generic API is enabled.

Files

file  u8g2_display_params.h
 Default configuration.
 

Macros

#define U8G2_DISPLAY_PARAM_SCREEN_IDS   0
 Default screen identifiers.
 

Variables

static const u8g2_display_params_t u8g2_display_params []
 Configuration struct.
 
static const uint8_t u8g2_display_screen_ids []
 Configure screen identifiers.
 

Default configuration parameters for u8g2 displays

#define U8G2_DISPLAY_PARAM_DEV   I2C_DEV(0)
 Default I2C or SPI device.
 
#define U8G2_DISPLAY_PARAM_I2C_ADDR   (0x3c)
 Default I2C address.
 
#define U8G2_DISPLAY_PARAM_PIN_CS   GPIO_UNDEF
 Default SPI CS pin.
 
#define U8G2_DISPLAY_PARAM_PIN_DC   GPIO_UNDEF
 Default SPI D/C pin.
 
#define U8G2_DISPLAY_PARAM_PIN_RESET   GPIO_UNDEF
 Default SPI Reset pin.
 
#define U8G2_DISPLAY_PARAM_INIT_FUNCTION   u8g2_Setup_ssd1306_i2c_128x64_noname_f
 Default U8G2 initialization function.
 
#define U8G2_DISPLAY_PARAMS
 Default configuration struct.
 

Macro Definition Documentation

◆ U8G2_DISPLAY_PARAM_DEV

#define U8G2_DISPLAY_PARAM_DEV   I2C_DEV(0)

Default I2C or SPI device.

For I2C displays, set to the desired I2C bus using I2C_DEV (e.g. I2C_DEV(0)). For SPI displays, set to the desired SPI bus using SPI_DEV (e.g. SPI_DEV(0)).

Definition at line 44 of file u8g2_display_params.h.

◆ U8G2_DISPLAY_PARAM_I2C_ADDR

#define U8G2_DISPLAY_PARAM_I2C_ADDR   (0x3c)

Default I2C address.

Note
Set to 0 when using SPI

Definition at line 52 of file u8g2_display_params.h.

◆ U8G2_DISPLAY_PARAM_INIT_FUNCTION

#define U8G2_DISPLAY_PARAM_INIT_FUNCTION   u8g2_Setup_ssd1306_i2c_128x64_noname_f

Default U8G2 initialization function.

See also
Check the u8g2 reference for possible setup functions: https://github.com/olikraus/u8g2/wiki/u8g2setupc#setup-function-reference

Definition at line 85 of file u8g2_display_params.h.

◆ U8G2_DISPLAY_PARAM_PIN_CS

#define U8G2_DISPLAY_PARAM_PIN_CS   GPIO_UNDEF

Default SPI CS pin.

Note
Set to GPIO_UNDEF when using I2C

Definition at line 60 of file u8g2_display_params.h.

◆ U8G2_DISPLAY_PARAM_PIN_DC

#define U8G2_DISPLAY_PARAM_PIN_DC   GPIO_UNDEF

Default SPI D/C pin.

Note
Set to GPIO_UNDEF when using I2C

Definition at line 68 of file u8g2_display_params.h.

◆ U8G2_DISPLAY_PARAM_PIN_RESET

#define U8G2_DISPLAY_PARAM_PIN_RESET   GPIO_UNDEF

Default SPI Reset pin.

Note
Set to GPIO_UNDEF when using I2C

Definition at line 76 of file u8g2_display_params.h.

◆ U8G2_DISPLAY_PARAM_SCREEN_IDS

#define U8G2_DISPLAY_PARAM_SCREEN_IDS   0

Default screen identifiers.

Definition at line 118 of file u8g2_display_params.h.

◆ U8G2_DISPLAY_PARAMS

#define U8G2_DISPLAY_PARAMS
Value:
{ \
.peripheral_configuration = { \
.device_index = U8G2_DISPLAY_PARAM_DEV, \
}, \
.i2c_address = U8G2_DISPLAY_PARAM_I2C_ADDR, \
}
#define U8G2_DISPLAY_PARAM_PIN_DC
Default SPI D/C pin.
#define U8G2_DISPLAY_PARAM_PIN_CS
Default SPI CS pin.
#define U8G2_DISPLAY_PARAM_PIN_RESET
Default SPI Reset pin.
#define U8G2_DISPLAY_PARAM_DEV
Default I2C or SPI device.
#define U8G2_DISPLAY_PARAM_INIT_FUNCTION
Default U8G2 initialization function.
#define U8G2_DISPLAY_PARAM_I2C_ADDR
Default I2C address.

Default configuration struct.

Definition at line 92 of file u8g2_display_params.h.

Variable Documentation

◆ u8g2_display_params

const u8g2_display_params_t u8g2_display_params[]
static
Initial value:
=
{
}
#define U8G2_DISPLAY_PARAMS
Default configuration struct.

Configuration struct.

Definition at line 109 of file u8g2_display_params.h.

◆ u8g2_display_screen_ids

const uint8_t u8g2_display_screen_ids[]
static
Initial value:
=
{
}
#define U8G2_DISPLAY_PARAM_SCREEN_IDS
Default screen identifiers.

Configure screen identifiers.

Definition at line 124 of file u8g2_display_params.h.