Skip to main content
Visitor II
October 20, 2023
Question

lcd interface

  • October 20, 2023
  • 2 replies
  • 6387 views

Hi all, I am currently working to interface a 16x2 LCD(LM016L) display with STM32F103C8 through MCP4725. The problem I am facing is that while comparing a similar work I could not find the relevant libraries. I am also new to STM32IDE so I might not know them. The libraries required are to use I2C functions and the second one is to for the LCD library. Another problem I am facing is how to define pins in the already initialized code without changing anything in STM32MX I want to be able to define pins after I have generated the code .While searching, the majority of the codes found were in Arduino and not in STM32, so is there any study material or videos that you could recommend to understand STM32IDE better (Arduino is not working on my PC due to some error).

The link to the sample project I got: https://circuitdigest.com/microcontroller-projects/how-to-use-dac-in-stm32f10c8

I have also attached the pin configuration up to how much I could understand.

    This topic has been closed for replies.

    2 replies

    ST Employee
    November 3, 2023

    Hello @SIDDHARTH 

    First let me thank you for posting.

    I recommend you to give a look to this link containing training on how to use STM32CubeMX and STM32CubeIDE:

    STM32CubeIDE basics - STMicroelectronics

    STM32CubeMX & CubeHAL basics MOOC - STMicroelectronics

    BR,

    Semer.

    Graduate II
    November 3, 2023

    Perhaps try just coding in C with the HAL directly, without the code generator.

    Likely examples in CubeL4 trees of GPIO and I2C implementation, and in the BSP layers for I2C chip interactions.

    Mock something up to prove the hardware works.