[fix] driver: st7565
added controller class instead of constants
This commit is contained in:
@@ -43,5 +43,16 @@
|
||||
#define CMD_NOP 0xE3
|
||||
#define CMD_TEST 0xF0
|
||||
|
||||
void ST7565_Init(GFX_display_t *disp);
|
||||
void ST7565_DisplayAll(void);
|
||||
typedef struct
|
||||
{
|
||||
SPI_HandleTypeDef *hspi;
|
||||
GPIO_TypeDef *cs_port; // ST7565_CS_GPIO_Port
|
||||
GPIO_TypeDef *a0_port; // ST7565_A0_GPIO_Port
|
||||
GPIO_TypeDef *rst_port; // ST7565_RST_GPIO_Port
|
||||
uint16_t cs_pin; // ST7565_CS_Pin
|
||||
uint16_t a0_pin; // ST7565_A0_Pin
|
||||
uint16_t rst_pin; // ST7565_RST_Pin
|
||||
} st7565_handle_t;
|
||||
|
||||
void ST7565_Init(st7565_handle_t *hdisp, GFX_display_t *disp);
|
||||
void ST7565_DisplayAll(st7565_handle_t *hdisp);
|
||||
|
||||
Reference in New Issue
Block a user