diff --git a/st7567/st7567-i2c.h b/st7567/st7567-i2c.h index 5989dfe..5e2608e 100644 --- a/st7567/st7567-i2c.h +++ b/st7567/st7567-i2c.h @@ -3,6 +3,8 @@ #include "esp_err.h" #include "driver/i2c_master.h" +#include "st7567-common.h" + // Display dimensions #define ST7567_WIDTH 128 @@ -26,7 +28,4 @@ typedef struct { */ esp_err_t st7567_init(const st7567_i2c_config_t *config, st7567_device_t *device); -#include "st7567-common.h" - - #endif // ST7567_I2C_H diff --git a/st7567/st7567-spi.h b/st7567/st7567-spi.h index 1952e44..4181e69 100644 --- a/st7567/st7567-spi.h +++ b/st7567/st7567-spi.h @@ -1,6 +1,7 @@ #ifndef ST7567_SPI_H #define ST7567_SPI_H +#include "st7567-common.h" #include "esp_err.h" #include "driver/spi_master.h" #include "driver/gpio.h" @@ -25,7 +26,4 @@ typedef struct { */ esp_err_t st7567_init(const st7567_spi_config_t *config, st7567_device_t *device); -#include "st7567-common.h" - - #endif // ST7567_SPI_H