AbleButtons V0.2.0
Lightweight button library for Arduino.
 
Loading...
Searching...
No Matches
Released.cpp File Reference

Definition of the on-released callback function. More...

#include "TestAbleButton.h"
#include "Utils.h"

Go to the source code of this file.

Functions

void onReleased (Button *btn)
 Callback function for button released. More...
 
void onIdle (Button *btn)
 Callback function for button idle. More...
 

Variables

ButtonreleasedBtn
 Button just released. More...
 

Detailed Description

Definition of the on-released callback function.

This function performs some assertions on the state of the button list and the individual button pressed when a button is released.

Definition in file Released.cpp.

Function Documentation

◆ onIdle()

void onIdle ( Button btn)

Callback function for button idle.

Parameters
btnThe button generaing the event.

Definition at line 36 of file Released.cpp.

◆ onReleased()

void onReleased ( Button btn)

Callback function for button released.

Parameters
btnThe button generaing the event.

Definition at line 18 of file Released.cpp.

Variable Documentation

◆ releasedBtn

Button* releasedBtn

Button just released.

Button released event.

Definition at line 11 of file Released.cpp.