mattjlewis / diozero

Java Device I/O library that is portable across Single Board Computers and microcontrollers. Tested with Raspberry Pi, Odroid C2, BeagleBone Black, Next Thing CHIP, Asus Tinker Board and Arduinos / Pico. Supports GPIO, I2C, SPI as well as Serial communication. Also known to work with Udoo Quad.
https://www.diozero.com
MIT License
261 stars 59 forks source link

Missing activeHigh parameter from DebouncedDigitalInputDevice constructor #93

Closed zixzix closed 2 years ago

zixzix commented 2 years ago

Hello mattjlewis I'm starting to test the DebouncedDigitalInputDevice class. Until now I had implemented a function made by myself for debouncing but your solution looks better.

However, I have noticed that I cannot specify the activeHigh value that I used often. Is it possible to add a new constructor that also specifies this parameter?

Thank you

mattjlewis commented 2 years ago

Apologies for the delay in looking into this - I will include in the next release.

mattjlewis commented 2 years ago

Apologies for the long delay on this one - finally released 1.3.4

zixzix commented 2 years ago

thank you very much