Skip to main content
Hpena
Associate II
Nov 26, 2019 3:40 AM UTC
Question

Set a GPIO using BLE sensor app

In addition to turning the Blue Led on with the p2p server app, I want to turn a Led on connected to a GPIO, using the same signal.

This topic has been closed for replies.

1 reply

Remi QUINTIN
ST Technical Moderator
Nov 26, 2019 1:17 PM UTC

You can find a lot of example code on the internet on how to generate a blinking led via GPIO on stm32 devices.

For something more specific to STM32WB (Note that it is anyhow generic to all STM32 devices) please go to:

STM32Cube_FW_WB_V1.3.0\Projects\P-NUCLEO-WB55.Nucleo\Examples\GPIO\GPIO_IOToggle.

Here you'll find some code to toggle a GPIO connected to a led.