EasyButton:

EasyButton for Arduino
Author: José Aristizábal
Contact: davidaristi.0504@gmail.com

Navigation


Description

EasyButton provides various features for handling buttons easily and without complications


Example

#include <EasyButton.h>

const int buttonPin = 11;
const int buttonPin2 = 12;
const int ledPin = 13;

EasyButton button(buttonPin);
EasyButton button_two(buttonPin, automaticCallFunction, CALL_IN_HOLD);

void automaticCallFunction()
{
  // Some code...
}

void setup()
{
  pinMode(ledPin, OUTPUT);
}

void loop()
{
  button.update();
  button_two.update();

  if (button.IsPushed())
    digitalWrite(ledPin, HIGH);
}


Known bugs

Without known bugs.


Content

The zip file content:
.h header file
.cpp source file
.txt Keywords file
examples folder with 3 useful examples.


Download

For "stable" release
https://github.com/blackhack/ArduLibraries/blob/master/Releases/EasyButton.rar?raw=true

For latest updates
https://github.com/blackhack/ArduLibraries/tree/master/EasyButton


Contact and Suggestions

Send mail to: davidaristi.0504@gmail.com

Share