- Copy the Buttons.ino file in the scetch folder
- Reopen your project
- Open find and open Buttons.ino in the Arduino tabs
- Edit Buttons.ino: #define MAXBUTTONCOUNT "YOUR_BUTTON_COUNT"
- Add button with addButton(int x, int y, int w, int h, String Name, int adress);
- Add buttonPressed(int pressX, int pressY); to void loop()
- If a button is pressed, buttonPressed() will return the name of the button;