Buongiorno ho un arduino 2560 con lcd 20x4 vorrei creare un menu semplice per spegnere dei dispositivi appena clicco sulla voce su lcd e uno per darli un timeout, e altri bottoni per fare su e giu + e - lo sketch che sto faccendo è questo:
#include <MenuBackend.h>
#include <Time.h>
#include <DS3232RTC.h>
#include <PCF8574_HD44780_I2C.h>
#include <Wire.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#include <RTClib.h>
#include <SPI.h>
#include <Ethernet.h>
//menu
int Menu=0; // VARIABILE CHE IDENTIFICA IL MENU' IN USO
const int buttonPingiu = 22; // pin Giu
const int buttonPinsu= 24; // pin Su
const int buttonPinok = 26; // pin OK
const int buttonPinPiu = 30; // pin modifica più
const int buttonPinMeno = 32; // pin modifica meno
int lastButtonokState = LOW; // the previous reading from the Enter input pin
int lastButtongiuState = LOW; // the previous reading from the Esc input pin
int lastButtonsuState = LOW; // the previous reading from the Left input pin
int lastButtonPiuState = LOW; //
int lastButtonMenoState = LOW; //
long lastEnterDebounceTime = 0; // the last time the output pin was toggled
long lastEscDebounceTime = 0; // the last time the output pin was toggled
long lastLeftDebounceTime = 0; // the last time the output pin was toggled
long lastRightDebounceTime = 0; // the last time the output pin was toggled
long debounceDelay = 500; // the debounce time
voidsetup ()
//BUTTON
pinMode(buttonPinMeno, INPUT);
pinMode(buttonPinPiu, INPUT);
pinMode(buttonPinok, INPUT);
pinMode(buttonPinsu, INPUT);
ora come posso andare avanti da qui per farli fare ciò che voglio? non trovi nessun tutorial su come installare e usare libreria beckend grazie in anticipo