Skip to content

TanPitch/ButtonKing

Repository files navigation

Logo

Build Status Codacy Badge Source Line of Code

This library is improving the usage of a simple singe button. It takes a single pushbutton to do some of the typical button press events like single clicks, double clicks and long-time pressing. This will make your project less buttons and much more funtion inside it.

lastest beta version

Build Status

ButtonKing 1.2.0 beta (download here)

  • add Triple click action
  • add interval time counter
  • add new Counting mode

lastest worked version

ButtonKing 1.2.0 (download here)

  • new algorithm
  • more stability
  • some minor improvement
  • example file bugs fixed
  • all worked : test on
    • Arduino Zero, Leonardo, Uno, Mega, Due
    • ESP8266 and ESP32
    • STM32 based boards

to install ButtonKing library install instruction

check lists

  • short/long period for button pressing.
  • double click with button pressing.
  • tripple click.
  • click for the specific times before time run-out. (beta)

for more information Button King wiki

If there is any problem, please submit an issue on github