now?
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user