cancel
Showing results for 
Search instead for 
Did you mean: 

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?

ARaul.2
Associate II

these are project files of the project

4 REPLIES 4
AScha.3
Chief III

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

If you feel a post has answered your question, please click "Accept as Solution".

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
Chief III

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 "Accept as Solution".

this is set : #define SLAVE_ADDRESS_LCD 0x4E

address is 0x27 so it is perfect i guess