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

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

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

Go to the source code of this file.

Functions

void onPressed (Button *btn)
 Callback function for button pressed. More...
 
void onHeld (Button *btn)
 Callback function for button held. More...
 

Variables

ButtonpressedBtn
 Button just pressed. More...
 

Detailed Description

Definition of the on-pressed callback function.

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

Definition in file Pressed.cpp.

Function Documentation

◆ onHeld()

void onHeld ( Button btn)

Callback function for button held.

Parameters
btnThe button generaing the event.

Definition at line 36 of file Pressed.cpp.

◆ onPressed()

void onPressed ( Button btn)

Callback function for button pressed.

Parameters
btnThe button generaing the event.

Definition at line 18 of file Pressed.cpp.

Variable Documentation

◆ pressedBtn

Button* pressedBtn

Button just pressed.

Button pressed event.

Definition at line 11 of file Pressed.cpp.