---
title: "Comment by B20DCDT202- Ngô Tiến Thành on \"Interfacing an I2C based LCD with STM32F407 Discovery Kit\" | Hashnode"
description: "HELLO Ruturaj A. Nanoti Thank you, very good article! But i want to create a function that clears the screen before displaying it but when used in while(1) the"
url: "https://hashnode.com/posts/interfacing-an-i2c-based-lcd-with-stm32f407-discovery-kit/616abf63a0825c673bded474/comment/65ade0f7c7b8dc66e1d10a1c"
---

[Discussion](https://hashnode.com/posts/interfacing-an-i2c-based-lcd-with-stm32f407-discovery-kit/616abf63a0825c673bded474)

Comment [Interfacing an I2C based LCD with STM32F407 Discovery Kit](https://hashnode.com/posts/interfacing-an-i2c-based-lcd-with-stm32f407-discovery-kit/616abf63a0825c673bded474)

[B20DCDT202- Ngô Tiến Thành](https://hashnode.com/@b20dcdt202)

[Jan 22, 2024](https://hashnode.com/posts/interfacing-an-i2c-based-lcd-with-stm32f407-discovery-kit/616abf63a0825c673bded474/comment/65ade0f7c7b8dc66e1d10a1c)

HELLO Ruturaj A. Nanoti Thank you, very good article! But i want to create a function that clears the screen before displaying it but when used in while(1) the screen flickers, how to fix this? Thanks void I2CLCD\_Clear(void) { LCD\_Write\_Cmd(LCD\_ADDR,INST\_REG,0x01); delay\_ms(10); }
