16 lines
510 B
16 lines
510 B
9 years ago
|
#pragma once
|
||
10 years ago
|
// switch debouncing and status
|
||
|
|
||
9 years ago
|
#include <Arduino.h>
|
||
|
|
||
10 years ago
|
|
||
|
boolean key_was_pressed (byte keyState);
|
||
|
boolean key_is_pressed (byte keyState);
|
||
|
boolean key_toggled_on(byte keyState);
|
||
|
boolean key_toggled_off(byte keyState);
|
||
9 years ago
|
|
||
|
boolean key_was_pressed (uint8_t currentState, uint8_t previousState);
|
||
|
boolean key_is_pressed (uint8_t currentState, uint8_t previousState);
|
||
|
boolean key_toggled_on(uint8_t currentState, uint8_t previousState);
|
||
|
boolean key_toggled_off(uint8_t currentState, uint8_t previousState);
|