This library is designed to make it easy to use Force Sensitive Resistor as a button... It is easy to use for not only beginners but also experienced users.
FSRButton stands for Force Sensitive Resistor Button
- Uses the analogRead function to get a reading from the FSR
- Supports debounce to eliminate the chattering phenomenon
- Supports the pressed and released events
- Supports the counting (for FALLING, RISING and BOTH)
- Easy to use with multiple buttons
- All functions are non-blocking
- [mwe.cpp] Minimum working example
- setDebounceTime()
- getState()
- getStateRaw()
- getRawAnalogRead()
- getRawAnalogReadPercent()
- isPressed()
- isReleased()
- setCountMode()
- setThreshold()
- getCount()
- resetCount()
- loop()
Based on ezButton Library