From 5480aae819715baf9f1d3a143c2b809c207c3e92 Mon Sep 17 00:00:00 2001 From: kraus Date: Sat, 31 Jul 2021 13:38:09 +0200 Subject: [PATCH] issue #1538 --- csrc/u8x8_d_st7586s_erc240160.c | 2 ++ csrc/u8x8_d_st7586s_s028hn118a.c | 2 ++ csrc/u8x8_d_st7586s_ymc240160.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/csrc/u8x8_d_st7586s_erc240160.c b/csrc/u8x8_d_st7586s_erc240160.c index 3d03b8fb..ed1da5bd 100644 --- a/csrc/u8x8_d_st7586s_erc240160.c +++ b/csrc/u8x8_d_st7586s_erc240160.c @@ -82,6 +82,7 @@ static const uint8_t u8x8_d_st7586s_erc240160_flip1_seq[] = { }; static const uint8_t u8x8_d_st7586s_erc240160_init_seq[] = { + U8X8_START_TRANSFER(),/* enable chip */ U8X8_END_TRANSFER(),/* disable chip */ // U8G_ESC_RST(1), /* hardware reset */ U8X8_DLY(60), /* Delay 60 ms */ @@ -135,6 +136,7 @@ static const uint8_t u8x8_d_st7586s_erc240160_init_seq[] = { U8X8_A(0x09F), // 160 pixels U8X8_C(0x029), // Display ON + U8X8_END_TRANSFER(),/* disable chip */ U8X8_END() /* end of sequence */ }; diff --git a/csrc/u8x8_d_st7586s_s028hn118a.c b/csrc/u8x8_d_st7586s_s028hn118a.c index 7f0df072..e672a26f 100644 --- a/csrc/u8x8_d_st7586s_s028hn118a.c +++ b/csrc/u8x8_d_st7586s_s028hn118a.c @@ -134,6 +134,7 @@ static uint8_t u8x8_d_st7586s_common(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, } static const uint8_t u8x8_d_st7586s_s028hn118a_init_seq[] = { + U8X8_START_TRANSFER(),/* enable chip */ U8X8_END_TRANSFER(),/* disable chip */ // U8G_ESC_RST(15), /* hardware reset */ U8X8_DLY(60), /* Delay 60 ms */ @@ -190,6 +191,7 @@ static const uint8_t u8x8_d_st7586s_s028hn118a_init_seq[] = { U8X8_A(0x00C), // issue in the US too U8X8_C(0x029), // Display ON + U8X8_END_TRANSFER(),/* disable chip */ U8X8_END() /* end of sequence */ }; diff --git a/csrc/u8x8_d_st7586s_ymc240160.c b/csrc/u8x8_d_st7586s_ymc240160.c index aaba272e..93317009 100644 --- a/csrc/u8x8_d_st7586s_ymc240160.c +++ b/csrc/u8x8_d_st7586s_ymc240160.c @@ -74,6 +74,7 @@ static const uint8_t u8x8_d_st7586s_ymc240160_flip1_seq[] = { }; static const uint8_t u8x8_d_st7586s_ymc240160_init_seq[] = { + U8X8_START_TRANSFER(),/* enable chip */ U8X8_END_TRANSFER(),/* disable chip */ // U8G_ESC_RST(1), /* hardware reset */ U8X8_DLY(60), /* Delay 60 ms */ @@ -127,6 +128,7 @@ static const uint8_t u8x8_d_st7586s_ymc240160_init_seq[] = { U8X8_A(0x09F), // 160 pixels U8X8_C(0x029), // Display ON + U8X8_END_TRANSFER(),/* disable chip */ U8X8_END() /* end of sequence */ };