2024-11-29 04:38 AM
Hi everyone I'm rather new with programming with STM32 controllers and I am currently using NUCLEO-L432KC. Currently I'm facing a problem with HAL_GPIO_WritePin() function. I am interfacing with a 16x2 LCD and I am trying to write to the RS pin via the function I have mentioned, however I am facing a problem where the RS isn't being set to the desired value I am providing. I have provided the value like so: HAL_GPIO_WritePin(RS_GPIO_Port, RS_Pin, rs);
Where I have given rs = 0 but the function is setting the value as 1. I have also provided the photo of the RS pin configuration from the IOC file.
2024-12-03 07:49 AM
With data lines, they will be bidirectional as he's using W\ pin. So he will change the configuration of the data line pins each time he switches from read to write.
2024-12-03 07:55 AM
Hi SofLit,
i think he is happy if he has a "Hello World" on his Display.
Reading Data from the Display is the next level ;) in the programming game.
padawan
2024-12-03 07:59 AM - edited 2024-12-04 06:06 AM
@padawan wrote:
Reading Data from the Display is the next level ;) in the programming game.
Indeed but my comment was to warn him if he will intend to use read/write. To start he needs to start with Write operation (writing to the LCD).
PS: I remember long time ago when I was a student (21 years ago), I programmed this kind of LCD just by using switches for learning purposes ;) . Times have changed ...
2024-12-04 02:05 AM
PS: I remember long time ago when I was a student (21 years ago), I programmed this kind of LCD just by using switches ;). Times have changed ...
Yes, the good old days, ;)
My first contact with these displays was in the last millennium with a PIC controller and in assembler.
padawn
2024-12-04 02:09 AM
@padawan wrote:
My first contact with these displays was in the last millennium with a PIC controller and in assembler
They used to be a staple of 8051 forums ...