Skip to main content
ASoni.4
Visitor II
November 7, 2022
Solved

bitwise operations and registers to change the LEDs on/off?

  • November 7, 2022
  • 2 replies
  • 796 views

..

This topic has been closed for replies.
Best answer by AScha.3

HAL_GPIO_WritePin(GPIOB, GPIO_PIN_7, GPIO_PIN_SET); --

HAL_GPIO_WritePin(GPIOB, GPIO_PIN_7, GPIO_PIN_RESET);

2 replies

AScha.3
AScha.3Best answer
Super User
November 7, 2022

HAL_GPIO_WritePin(GPIOB, GPIO_PIN_7, GPIO_PIN_SET); --

HAL_GPIO_WritePin(GPIOB, GPIO_PIN_7, GPIO_PIN_RESET);

"If you feel a post has answered your question, please click ""Accept as Solution""."
Piranha
Principal III
November 7, 2022

GPIOx_BSRR

P.S. Of course, never inform others of your MCU part number...