/*
https://forum.arduino.cc/t/help-getting-button-presses-recognised/1220596
*/
#include "PushButton.h"
#include "Oled.h"
#define selectButton 3
#define upButton 4
#define downButton 5
PushButton select(selectButton, true, true);
PushButton up(upButton, true, true);
PushButton down(downButton, true, true);
//OLEDDisplay Oled;
OLEDDisplay Oled(select,up,down);
void setup() {
Serial.begin(115200);
Oled.init();
}
void loop() {
Oled.homeScreen();
// if (enterButton.isPressed()) {
// Serial.println("Enter Button is pressed");
// }
// else {
// if (upButton.isPressed()) {
// //Serial.println(menuItem);
// Serial.println("Up Button is pressed");
// }
// else {
// if (downButton.isPressed()) {
// Serial.println("Down Button is pressed");
// }
// }
// }
}