Module Button
[frames] | no frames]

Module Button

source code


Class that represents a push button on some GPIO port.


 This software is part of the raspibrickpi module.
 It is Open Source Free Software, so you may
 - run the code for any purpose
 - study how the code works and adapt it to your needs
 - integrate all or parts of the code in your own programs
 - redistribute copies of the code777
 - improve the code and release your improvements to the public
 However the use of the code is entirely your responsibility.

Classes
  Button
Variables
  DEBUG = False
  BUTTON_PRESSED = 1
  BUTTON_RELEASED = 2
  BUTTON_LONGPRESSED = 3
  BUTTON_CLICKED = 4
  BUTTON_DOUBLECLICKED = 5
  BUTTON_LONGPRESS_DURATION = 2
  BUTTON_DOUBLECLICK_TIME = 1