callback function

When a key is pressed or released, the libary will call the callback function set in the open call. That will actually happen from within the tick() function, so not calling tick on a regular schedule is not a good idea ..

The callback function receives two parameters:

first parameter: the key number (1...)

second parameter: the function (1: press, 0: release)

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
On This Page
callback function