Skip to main content
ARaul.2
Associate II
October 28, 2022
Question

i am trying to print on lcd via i2c and with stm32f103c6t6 but it is not working . there are no error in code also what should i do?

  • October 28, 2022
  • 4 replies
  • 1500 views

these are project files of the project

This topic has been closed for replies.

4 replies

AScha.3
Super User
October 28, 2022

no error in code - shure ? then bad connection or display defective.

If you feel a post has answered your question, please click on " Best Answer ".
ARaul.2
ARaul.2Author
Associate II
October 28, 2022

lcd working perfectly when i run code via arduino ide

and there are no errors also, can you please check out i2c files and code i have uploaded

AScha.3
Super User
October 28, 2022

ok, this time better information....

did you set adress correct ?

in : HAL_I2C_Master_Transmit(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, ...)

-> Target device address: The device 7 bits address value

 *     in datasheet must be shifted to the left before calling the interface

?

If you feel a post has answered your question, please click on " Best Answer ".
ARaul.2
ARaul.2Author
Associate II
October 28, 2022

this is set : #define SLAVE_ADDRESS_LCD 0x4E

address is 0x27 so it is perfect i guess