Introduction: 4X4 Keypad Input Display Through OLED
Step 1: Working With the Oled DIsplay
Both libraries below needs to be installed before you are able to continue with this instructable.
https://github.com/adafruit/Adafruit_SSD1306 (SSD1306 library)
https://github.com/adafruit/Adafruit_SSD1306 (GFX library)
The connections from the display:
VCC to arduino 5v GND to arduino GND SCL to arduino pin A5 SDA to arduino pin A4
Library Correction :
For Adafruit_SSD1306 Library:
Go to: C:\Program Files (x86)\Arduino\libraries\Adafruit_SSD1306 Open Adafruit_SSD1306.h (in a text editor like Notepad++ for example) Find and comment out the line: #define SSD1306_128_32 Uncomment the line: #define SSD1306_128_64 Open the ssd1306_128x64_i2c example in Arduino: Change address from 0x3D to 0x3C in void setup()
Step 2: Connecting the Keypad and Oled With Arduino
Connecting keypad with aruduino digital pins:
Keypad Pin Connects to Arduino Pin
Connecting OLED with aruduino Analog pins:
VCC to arduino 5v GND to arduino GND SCL to arduino pin A5 SDA to arduino pin A4.
Step 3: Uploading Code...
you can find a more clear tutorial and also the code below the link: