678 views
in Embedded Wizard Studio by

In then document

Connect the Toggle Button with a data provider
https://doc.embedded-wizard.de/toggle-button-widget?v=9.20

is explained how to connect an event of a pressed button with an action without writing a line of code.

I would like instead an example of how to intercept a pressed button and do something with the code like setting high a gpio pin or display a text on the display.

 

 
 

 

1 Answer

0 votes
by

Hello,

this GPIO use-case is shown in the example "DeviceIntegration" that you will find within your STM32 Build Environment within the subdirectory /Examples. This demo shows how to switch on/off the hardware LED when you press a button within a GUI application.

Please have a look to the chapter Device Class and Device Driver? It describes the necessary concepts.

Best regards,

Manfred.

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...