Clean up device descriptor struct
This commit is contained in:
parent
20a71428fc
commit
c5a78b4c6f
1 changed files with 2 additions and 5 deletions
|
@ -66,15 +66,12 @@ typedef struct
|
|||
{
|
||||
ssd1306_protocol_t protocol;
|
||||
ssd1306_screen_t screen;
|
||||
union
|
||||
{
|
||||
#if (SSD1306_I2C_SUPPORT)
|
||||
i2c_dev_t i2c_dev; //!< I2C devuce descriptor, used by SSD1306_PROTO_I2C
|
||||
i2c_dev_t i2c_dev; //!< I2C device descriptor, used by SSD1306_PROTO_I2C
|
||||
#endif
|
||||
#if (SSD1306_SPI4_SUPPORT) || (SSD1306_SPI3_SUPPORT)
|
||||
uint8_t cs_pin; //!< Chip Select GPIO pin, used by SSD1306_PROTO_SPI3, SSD1306_PROTO_SPI4
|
||||
#endif
|
||||
};
|
||||
#if (SSD1306_SPI4_SUPPORT)
|
||||
uint8_t dc_pin; //!< Data/Command GPIO pin, used by SSD1306_PROTO_SPI4
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue