├── .gitignore ├── LICENSE ├── README.md ├── examples ├── AnalogStick │ └── AnalogStick.ino ├── Button │ └── Button.ino ├── Button_Event │ └── Button_Event.ino ├── Button_Matrix │ └── Button_Matrix.ino ├── Button_PCF8574 │ └── Button_PCF8574.ino ├── I2CEncoder │ └── I2CEncoder.ino ├── Lameboy │ └── Lameboy.ino ├── PlayStation2_Gamepad │ └── PlayStation2_Gamepad.ino ├── PullupButton │ └── PullupButton.ino ├── RotaryEncoder │ └── RotaryEncoder.ino ├── RotaryEncoder_PCF8574 │ └── RotaryEncoder_PCF8574.ino └── Switch │ └── Switch.ino ├── library.json ├── library.properties └── src ├── Buttons ├── AnalogStick.cpp ├── AnalogStick.h ├── Button.cpp ├── Button.h ├── ButtonAnalog.cpp ├── ButtonAnalog.h ├── ButtonGPIOExpander.cpp ├── ButtonGPIOExpander.h ├── ButtonPullup.cpp ├── ButtonPullup.h ├── ButtonPullupGPIOExpander.cpp ├── ButtonPullupGPIOExpander.h ├── PS2Gamepad.cpp ├── PS2Gamepad.h ├── RotaryEncoder.cpp ├── RotaryEncoder.h ├── RotaryEncoderI2C.cpp ├── RotaryEncoderI2C.h ├── Switch.cpp └── Switch.h ├── Events ├── ClickEvent.cpp ├── ClickEvent.h ├── DoubleclickEvent.cpp ├── DoubleclickEvent.h ├── Event.cpp ├── Event.h ├── HoldEvent.cpp ├── HoldEvent.h ├── PushEvent.cpp ├── PushEvent.h ├── ReleaseEvent.cpp └── ReleaseEvent.h ├── SimpleButton.h └── libs ├── GPIOExpander.cpp ├── GPIOExpander.h ├── MCP23017.cpp ├── MCP23017.h ├── PCF8574.cpp ├── PCF8574.h ├── PCF8575.cpp └── PCF8575.h /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/README.md -------------------------------------------------------------------------------- /examples/AnalogStick/AnalogStick.ino: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/examples/AnalogStick/AnalogStick.ino -------------------------------------------------------------------------------- /examples/Button/Button.ino: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/examples/Button/Button.ino -------------------------------------------------------------------------------- /examples/Button_Event/Button_Event.ino: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/examples/Button_Event/Button_Event.ino -------------------------------------------------------------------------------- /examples/Button_Matrix/Button_Matrix.ino: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/examples/Button_Matrix/Button_Matrix.ino -------------------------------------------------------------------------------- /examples/Button_PCF8574/Button_PCF8574.ino: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/examples/Button_PCF8574/Button_PCF8574.ino -------------------------------------------------------------------------------- /examples/I2CEncoder/I2CEncoder.ino: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/examples/I2CEncoder/I2CEncoder.ino -------------------------------------------------------------------------------- /examples/Lameboy/Lameboy.ino: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/examples/Lameboy/Lameboy.ino -------------------------------------------------------------------------------- /examples/PlayStation2_Gamepad/PlayStation2_Gamepad.ino: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/examples/PlayStation2_Gamepad/PlayStation2_Gamepad.ino -------------------------------------------------------------------------------- /examples/PullupButton/PullupButton.ino: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/examples/PullupButton/PullupButton.ino -------------------------------------------------------------------------------- /examples/RotaryEncoder/RotaryEncoder.ino: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/examples/RotaryEncoder/RotaryEncoder.ino -------------------------------------------------------------------------------- /examples/RotaryEncoder_PCF8574/RotaryEncoder_PCF8574.ino: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/examples/RotaryEncoder_PCF8574/RotaryEncoder_PCF8574.ino -------------------------------------------------------------------------------- /examples/Switch/Switch.ino: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/examples/Switch/Switch.ino -------------------------------------------------------------------------------- /library.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/library.json -------------------------------------------------------------------------------- /library.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/library.properties -------------------------------------------------------------------------------- /src/Buttons/AnalogStick.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Buttons/AnalogStick.cpp -------------------------------------------------------------------------------- /src/Buttons/AnalogStick.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Buttons/AnalogStick.h -------------------------------------------------------------------------------- /src/Buttons/Button.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Buttons/Button.cpp -------------------------------------------------------------------------------- /src/Buttons/Button.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Buttons/Button.h -------------------------------------------------------------------------------- /src/Buttons/ButtonAnalog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Buttons/ButtonAnalog.cpp -------------------------------------------------------------------------------- /src/Buttons/ButtonAnalog.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Buttons/ButtonAnalog.h -------------------------------------------------------------------------------- /src/Buttons/ButtonGPIOExpander.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Buttons/ButtonGPIOExpander.cpp -------------------------------------------------------------------------------- /src/Buttons/ButtonGPIOExpander.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Buttons/ButtonGPIOExpander.h -------------------------------------------------------------------------------- /src/Buttons/ButtonPullup.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Buttons/ButtonPullup.cpp -------------------------------------------------------------------------------- /src/Buttons/ButtonPullup.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Buttons/ButtonPullup.h -------------------------------------------------------------------------------- /src/Buttons/ButtonPullupGPIOExpander.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Buttons/ButtonPullupGPIOExpander.cpp -------------------------------------------------------------------------------- /src/Buttons/ButtonPullupGPIOExpander.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Buttons/ButtonPullupGPIOExpander.h -------------------------------------------------------------------------------- /src/Buttons/PS2Gamepad.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Buttons/PS2Gamepad.cpp -------------------------------------------------------------------------------- /src/Buttons/PS2Gamepad.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Buttons/PS2Gamepad.h -------------------------------------------------------------------------------- /src/Buttons/RotaryEncoder.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Buttons/RotaryEncoder.cpp -------------------------------------------------------------------------------- /src/Buttons/RotaryEncoder.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Buttons/RotaryEncoder.h -------------------------------------------------------------------------------- /src/Buttons/RotaryEncoderI2C.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Buttons/RotaryEncoderI2C.cpp -------------------------------------------------------------------------------- /src/Buttons/RotaryEncoderI2C.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Buttons/RotaryEncoderI2C.h -------------------------------------------------------------------------------- /src/Buttons/Switch.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Buttons/Switch.cpp -------------------------------------------------------------------------------- /src/Buttons/Switch.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Buttons/Switch.h -------------------------------------------------------------------------------- /src/Events/ClickEvent.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Events/ClickEvent.cpp -------------------------------------------------------------------------------- /src/Events/ClickEvent.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Events/ClickEvent.h -------------------------------------------------------------------------------- /src/Events/DoubleclickEvent.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Events/DoubleclickEvent.cpp -------------------------------------------------------------------------------- /src/Events/DoubleclickEvent.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Events/DoubleclickEvent.h -------------------------------------------------------------------------------- /src/Events/Event.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Events/Event.cpp -------------------------------------------------------------------------------- /src/Events/Event.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Events/Event.h -------------------------------------------------------------------------------- /src/Events/HoldEvent.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Events/HoldEvent.cpp -------------------------------------------------------------------------------- /src/Events/HoldEvent.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Events/HoldEvent.h -------------------------------------------------------------------------------- /src/Events/PushEvent.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Events/PushEvent.cpp -------------------------------------------------------------------------------- /src/Events/PushEvent.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Events/PushEvent.h -------------------------------------------------------------------------------- /src/Events/ReleaseEvent.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Events/ReleaseEvent.cpp -------------------------------------------------------------------------------- /src/Events/ReleaseEvent.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/Events/ReleaseEvent.h -------------------------------------------------------------------------------- /src/SimpleButton.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/SimpleButton.h -------------------------------------------------------------------------------- /src/libs/GPIOExpander.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/libs/GPIOExpander.cpp -------------------------------------------------------------------------------- /src/libs/GPIOExpander.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/libs/GPIOExpander.h -------------------------------------------------------------------------------- /src/libs/MCP23017.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/libs/MCP23017.cpp -------------------------------------------------------------------------------- /src/libs/MCP23017.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/libs/MCP23017.h -------------------------------------------------------------------------------- /src/libs/PCF8574.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/libs/PCF8574.cpp -------------------------------------------------------------------------------- /src/libs/PCF8574.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/libs/PCF8574.h -------------------------------------------------------------------------------- /src/libs/PCF8575.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/libs/PCF8575.cpp -------------------------------------------------------------------------------- /src/libs/PCF8575.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spacehuhn/SimpleButton/HEAD/src/libs/PCF8575.h --------------------------------------------------------------------------------