Skip to content

Commit

Permalink
better place for the init delay
Browse files Browse the repository at this point in the history
  • Loading branch information
rhapsodyv committed Sep 6, 2020
1 parent f385531 commit 2f20711
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Marlin/src/lcd/dogm/u8g_dev_uc1701_mini12864_HAL.cpp
Expand Up @@ -53,7 +53,7 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include "../../inc/MarlinConfig.h"
#include "../../inc/MarlinConfigPre.h"

#if HAS_GRAPHICAL_LCD

Expand Down Expand Up @@ -112,6 +112,7 @@ static const uint8_t u8g_dev_uc1701_mini12864_HAL_init_seq[] PROGMEM = {
U8G_ESC_CS(1), // enable chip
UC1701_ALL_PIX(0), // normal display
U8G_ESC_CS(0), // disable chip
U8G_ESC_DLY(150), // delay 150 ms before send any data
U8G_ESC_END // end of sequence
};

Expand Down Expand Up @@ -143,7 +144,6 @@ uint8_t u8g_dev_uc1701_mini12864_HAL_fn(u8g_t *u8g, u8g_dev_t *dev, uint8_t msg,
case U8G_DEV_MSG_INIT:
u8g_InitCom(u8g, dev, U8G_SPI_CLK_CYCLE_300NS);
u8g_WriteEscSeqP(u8g, dev, u8g_dev_uc1701_mini12864_HAL_init_seq);
delay(150);
break;

case U8G_DEV_MSG_STOP: break;
Expand Down Expand Up @@ -173,7 +173,6 @@ uint8_t u8g_dev_uc1701_mini12864_HAL_2x_fn(u8g_t *u8g, u8g_dev_t *dev, uint8_t m
case U8G_DEV_MSG_INIT:
u8g_InitCom(u8g, dev, U8G_SPI_CLK_CYCLE_300NS);
u8g_WriteEscSeqP(u8g, dev, u8g_dev_uc1701_mini12864_HAL_init_seq);
delay(150);
break;

case U8G_DEV_MSG_STOP: break;
Expand Down

0 comments on commit 2f20711

Please sign in to comment.