PiPower  ac0ff3c (Mon Feb 11 21:44:30 2019 -0500)
Macros | Variables
Power button

Macros

#define LONG_PRESS_DURATION   2000
 Length of long press.
 
#define BUTTON_NORMAL   0
 Process button events normally.
 
#define BUTTON_IGNORE   1
 Power button must be released.
 

Variables

Button power_button
 Power button.
 
uint8_t power_button_state = BUTTON_NORMAL
 Power button current state.
 
unsigned long time_pressed
 Current press duration.
 

Detailed Description