This commit is contained in:
2026-08-20 21:16:06 +02:00
parent 3d53c71c87
commit 997be6b4eb
3 changed files with 13 additions and 6 deletions

View File

@@ -1,9 +1,5 @@
#pragma once
// Display dimensions
#define ST7567_WIDTH 128
#define ST7567_HEIGHT 64
#define ST7567_PAGES (ST7567_HEIGHT / 8)
// ST7567 command set
#define ST7567_CMD_DISPLAY_OFF 0xAE

View File

@@ -4,7 +4,10 @@
#include "esp_err.h"
#include "driver/i2c_master.h"
#include "st7567-common.h"
// Display dimensions
#define ST7567_WIDTH 128
#define ST7567_HEIGHT 64
#define ST7567_PAGES (ST7567_HEIGHT / 8)
// Configuration structure
typedef struct {
@@ -29,4 +32,7 @@ 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

View File

@@ -5,7 +5,10 @@
#include "driver/spi_master.h"
#include "driver/gpio.h"
#include "st7567-common.h"
// Display dimensions
#define ST7567_WIDTH 128
#define ST7567_HEIGHT 64
#define ST7567_PAGES (ST7567_HEIGHT / 8)
// Configuration structure
typedef struct {
@@ -33,5 +36,7 @@ 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