Skip to content

About

Class for working with buttons with leds inside.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

58 Commits

Folders and files

Repository files navigation

IlluminatedButton

Class for working with buttons with leds inside.

Note: multi-LED functionality is untested

Example usage

#include <IlluminatedButton.h>

#define PIN_BUTTON 3
#define PIN_LED 1

IlluminatedButton button(PIN_BUTTON, PIN_LED);

void setup() {
  Serial.begin(9600);
  button.init();
}

void loop() {
  button.update();

  if (button.pressed()) {
    Serial.println("Button pressed");
  }
}

Take a look at the examples to see how to add callbacks and add momentary button press feedback.

About

Class for working with buttons with leds inside.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages