Question about the LED of STM32F407
This is my code.
GPIO_PinState boButton_state ;
printf (" Hello �?� Cruel �?� World \n");
while (1)
{
boButton_state = HAL_GPIO_ReadPin ( B1_GPIO_Port , B1_Pin );
HAL_GPIO_WritePin ( LD6_GPIO_Port , LD6_Pin , boButton_state );
HAL_GPIO_TogglePin ( LD3_GPIO_Port , LD3_Pin );
HAL_Delay ( TENTH_SEC );
}
In the code show that the LED(LD3) will toggle every 10th of a second as an indication that the code is running.
At the same moment the LED(LD6) will turn on when i pushbutton User(B1).
Now i need to write the explain about this situation, can i explain will the HAL code inverts the logic so the LED(LD6) normally is off and only will turn on when i push the button?
Thanks in advance.