Name
button_setcb —
sets the button callback
Synopsis
#include <button.h>
event_handle_t cb
;
Arguments
cb
callback function to be invoked
Description
Specify the callback function to be invoked, when a button press is
detected. The callback does not take arguments and does not return
values. An example callback is shown below.