#include < Wire.h >
#include < Adafruit_GFX.h >
#include < Adafruit_SSD1306.h >
// Definimos el ancho y alto de la pantalla OLED
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
// Crear un objeto de tipo OLED en la dirección I2C 0x3C
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, & Wire, -1);
// Pines de los botones
const int button1Pin = 7;
const int button2Pin = 8;
const int button3Pin = 9;
void setup() {
// Configuración de los pines de los botones como entradas con resistencia pull-down
pinMode(button1Pin, INPUT);
pinMode(button2Pin, INPUT);
pinMode(button3Pin, INPUT);