#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h> 

Adafruit_SSD1306 oled = Adafruit_SSD1306(128, 64, &Wire);

void setup(){
  pinMode(2, INPUT_PULLUP);
  pinMode(3, INPUT_PULLUP);
  pinMode(4, INPUT_PULLUP);
  Serial.begin(9600); 
  
  oled.begin(SSD1306_SWITCHCAPVCC, 0x3C); 
  oled.setTextSize(1);
  oled.setTextColor(SSD1306_WHITE);
}

void loop(){
  Serial.print(digitalRead(2));
  Serial.print(digitalRead(3));
  Serial.println(digitalRead(4));

  oled.clearDisplay();

  oled.setCursor(1,0);
  oled.print("tombol");
  oled.print(digitalRead(2));
  oled.print(digitalRead(3));
  oled.println(digitalRead(4));

  oled.display();
    
}