Hi @maximkulkin,
Is there a way in which Button example can be tweaked to use it as Toggle?
I tried using the Toggle directly on ESP-32 but am constantly getting an error. error: implicit declaration of function 'create_toggle'.
Code i have added is
`
at the top
include
and
if (create_toggle(button_gpio, button_toggle_callback)) {
printf("Failed to initialize button");
}`
Hi @maximkulkin, Is there a way in which Button example can be tweaked to use it as Toggle?
I tried using the Toggle directly on ESP-32 but am constantly getting an error.
error: implicit declaration of function 'create_toggle'
. Code i have added is ` at the topinclude
and
if (create_toggle(button_gpio, button_toggle_callback)) { printf("Failed to initialize button"); }`
Thanks.