---
title: "Discussion on \"Interfacing an I2C based LCD with STM32F407 Discovery Kit\" | Hashnode"
description: "Discussion on \"Interfacing an I2C based LCD with STM32F407 Discovery Kit\". Introduction\nHi! 😃 This article will focus on learning to implement the I2C protocol on the STM32F407 Discovery Board and interfacing various devices using it. Here, we will be looking at connecting a Liquid Crystal Display with our MCU. The LCD has..."
url: "https://hashnode.com/posts/interfacing-an-i2c-based-lcd-with-stm32f407-discovery-kit/616abf63a0825c673bded474"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Interfacing an I2C based LCD with STM32F407 Discovery Kit](https://ruturajn.hashnode.dev/interfacing-an-i2c-based-lcd-with-stm32f407-discovery-kit?utm_source=hashnode&utm_medium=feed)

Introduction Hi! 😃 This article will focus on learning to implement the I2C protocol on the STM32F407 Discovery Board and interfacing various devices using it. Here, we will be looking at connecting a Liquid Crystal Display with our MCU. The LCD has...

Oct 16, 2021 · 21 min read · ruturajn.hashnode.dev  
Updated Jan 22, 2022  
Read the article

-   [#embedded](https://hashnode.com/tag/embedded)

## Written by

[Ruturaj A. Nanoti](https://hashnode.com/@RuturajN)

@RuturajN

  
[View profile](https://hashnode.com/@RuturajN)

Embedded Systems Enthusiast

I am a Second year Master's student, pursuing ESE. I am interested in Embedded systems and like developing applications using various development boards like the STM32F407 Discovery, Pi Pico, and Arduino.

## Responses 4

Markdown supported · ⌘↵ to post

[med amine bouallegui](https://hashnode.com/@MINOEX)

[Oct 8, 2024](https://hashnode.com/posts/interfacing-an-i2c-based-lcd-with-stm32f407-discovery-kit/616abf63a0825c673bded474/comment/6705a5bf6a288a8efc03260d)

Hi mr Ruturaj A. Nanoti,i followed your guide step by step and i have 1 question, to print "HELLO" to the LCD, you useddd the hex numbers. lets discuss the first one 'H', you putted 0x84, i did not get it, if you may be so kind to explain it to me, as ik, the ASCII code of'H' is 48 so i was confused.

i m new in this domain.

[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); }

[Divya chavan](https://hashnode.com/@DivyaChavan)

[Apr 9, 2023](https://hashnode.com/posts/interfacing-an-i2c-based-lcd-with-stm32f407-discovery-kit/616abf63a0825c673bded474/comment/6432bbbb47aba44dec0bd877)

The address phase of I2C communication consists of 7 bits of address and one bit of R/W bit . So, the address has to left shifted by one bit to accommodate the read or right bit in the lsb. Correct me if I m wrong.

[Ruturaj A. Nanoti](https://hashnode.com/@RuturajN)

[Nov 5, 2023](https://hashnode.com/posts/interfacing-an-i2c-based-lcd-with-stm32f407-discovery-kit/616abf63a0825c673bded474/comment/6432bbbb47aba44dec0bd877#reply-654711fd08e6f2d0c473b28a)

Hi, yes that is correct :)

[Hanen Saoudi](https://hashnode.com/@hanenphd)

[Apr 29, 2022](https://hashnode.com/posts/interfacing-an-i2c-based-lcd-with-stm32f407-discovery-kit/616abf63a0825c673bded474/comment/626c38c4a2d355d4df43cfe5)

HELLO Ruturaj A. Nanoti

I'm working with STM32F4O7 discovery, i need your hepl to connect LCD to the CARD STM32F407. I'm so gratefull if you send me your main code.

[Ruturaj A. Nanoti](https://hashnode.com/@RuturajN)

[Apr 30, 2022](https://hashnode.com/posts/interfacing-an-i2c-based-lcd-with-stm32f407-discovery-kit/616abf63a0825c673bded474/comment/626c38c4a2d355d4df43cfe5#reply-626cc6c3a2d355d4df43de64)

Hi, I have linked my GitHub repo in the Conclusion section, but anyways here you go, [github.com/Ruturajn/Interfacing-a-LCD-Using-I2C-P…](https://github.com/Ruturajn/Interfacing-a-LCD-Using-I2C-Protocol) I hope you find it useful.
