bxparks / AceButton

An adjustable, compact, event-driven button library for Arduino that debounces and dispatches events to a user-defined event handler.
MIT License
385 stars 37 forks source link

Add check(int) #105

Closed RichardBH closed 1 year ago

RichardBH commented 1 year ago

So that can users pass in inputs from other devices like PCF8574 expanders etc. E.g.

#include <Adafruit_PCF8574.h>
Adafruit_PCF8574 pcf;

In loop...
button.check(pcf.digitalRead(BUTTON_PIN));