EasyButtonAtInt01

Arduino library for push buttons at INT0 and / or INT1 pin (pin 2 / 3). Provides debouncing and toggle button functionality.

GPL-3.0 License

Stars
10
EasyButtonAtInt01 - Added NO_INITIALIZE_IN_CONSTRUCTOR macro to enable late initializing Latest Release

Published by ArminJo about 1 year ago

  • Added NO_INITIALIZE_IN_CONSTRUCTOR macro to enable late initializing.
  • ButtonStateIsActive is now private, since it is not reliable after bouncing. Use readButtonState() or readDebouncedButtonState() instead.
EasyButtonAtInt01 - Avoid mistakenly double press detection after boot.

Published by ArminJo over 2 years ago

EasyButtonAtInt01 - Renamed EasyButtonAtInt01.cpp.h to EasyButtonAtInt01.hpp

Published by ArminJo about 3 years ago

You must change
#include "EasyButtonAtInt01.cpp.h"
to
#include "EasyButtonAtInt01.hpp"

EasyButtonAtInt01 - Second button now possible on each ATmega328 pin

Published by ArminJo almost 4 years ago

EasyButtonAtInt01 - 2 sets of constructors

Published by ArminJo over 4 years ago

  • 2 sets of constructors, one for only one button used and one for the second button if two buttons used.
  • Map pin numbers for Digispark pro boards, for use with with digispark library.
EasyButtonAtInt01 - Added button release handler

Published by ArminJo over 4 years ago

  • Added button release handler and adapted examples.
  • Revoke change for "only one true result per press for checkForLongPressBlocking()". It is superseded by button release handler.
  • Support buttons which are active high by defining BUTTON_IS_ACTIVE_HIGH.
  • Improved detection of maximum bouncing period used in DebounceTest.
EasyButtonAtInt01 - Long and double press revisited

Published by ArminJo over 4 years ago

  • Avoid 1 ms delay for checkForLongPressBlocking() if button is not pressed.
  • Only one true result per press for checkForLongPressBlocking().
EasyButtonAtInt01 - Ported to ATtinyX5 and ATiny167

Published by ArminJo over 4 years ago

  • Ported to ATtinyX5 and ATiny167.
  • Support also PinChangeInterrupt for button 1 on Pin PA0 to PA7 for ATtiniy87/167.
  • Long button press detection support.
  • Analyzes maximum debouncing period.
  • Double button press detection support.
  • Very short button press handling.
  • Renamed to EasyButtonAtInt01.cpp.h
EasyButtonAtInt01 - First version as Arduino library

Published by ArminJo over 5 years ago