Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 919 Bytes

README.md

File metadata and controls

15 lines (9 loc) · 919 Bytes

Fork of RBD_Button that takes an Adafruit_FreeTouch object rather than a pin. Uses a diff value on the count value recieved from measurement to set the pressed/released state; a positive change indicates a touch, negative indicates release.

Hopefully RBD does not mind using the namespace here 🙂 - I thought I would keep it as it maintains the same interface as the RBD_Button (other than constructor).

Requirements

Usage

See 'examples/touch_test' for constructor, which takes a pointer to a Adafruit_FreeTouch object. NOTE the FreeTouch object must call begin() somewhere.

Otherwise see the RBD Button Documentation as the interface matches that.