2019-02-03 11:25 PM
Hello,
I searched in cubemx where to change the default value of gpio pins, but couldn't find it.
Does anyone knows ?
In generated code, all output gpio are set to 0, for example :
HAL_GPIO_WritePin(GPIOK, SW_LED1_Pin, GPIO_PIN_RESET);
Thanks,
ranran
Solved! Go to Solution.
2019-02-04 05:31 AM
Hello ranran,
You can select the status of the GPIO pin (GPIO_PIN_RESET / GPIO_PIN_SET) by setting the GPIO output level to Low or High, as shown in the figure below.
Best Regards,
Mohamed Aymen.
2019-02-04 05:31 AM
Hello ranran,
You can select the status of the GPIO pin (GPIO_PIN_RESET / GPIO_PIN_SET) by setting the GPIO output level to Low or High, as shown in the figure below.
Best Regards,
Mohamed Aymen.