LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Activation of STM32 pins via LabVIEW

Hi everyone,

 

I’d like to know if it’s possible to send commands via UART to activate pin B0 and pin A0 on a microcontroller?

 

 

Currently, I’m able to read the data sent by the microcontroller.

 

I have configured my STM32 microcontroller as shown below:

 

 

IF (color == G){

 

HAL_GPIO_WritePin(GPIOB, GPIO_PIN_0, GPIO_PIN_SET);

 

HAL_GPIO_WritePin(GPIOB, GPIO_PIN_1, GPIO_PIN_SET);

 

HAL_GPIO_WritePin(GPIOA, GPIO_PIN_0, GPIO_PIN_SET);

 

}

0 Kudos
Message 1 of 1
(109 Views)