Hello and thanks in advance for any helping , I start learning recently and my first Blinking codes not working , i guess forget any point , please kindly check codes and pictures and recommend me. I add more pic in reply. please check all.
Hello and thanks in advance for any helping , I start learning recently and my first Blinking codes not working , i guess forget any point , please kindly check codes and pictures and recommend me. I add more pic in reply. please check all.
3rd parameter of HAL_GPIO_WritePin should be GPIO_PIN_RESET or GPIO_PIN_SET (0 or 1)
If I understand well, you're doing test=0 and then test = -test which is always 0.
There is another function that might interrest you: HAL_GPIO_TogglePin, please have a look.
Good luck.
In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
The LD4 led keeps blinbking RED/GREEN when debugging. That is normal.
You should be able to go step by step.
In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.