Search This Blog

Saturday, August 15, 2015

Simple UI using arduino Nano, i2c OLED & Rotary encoder

White 0.96" I2C 128X64 OLED LCD Display Module :3V - 5V DC, Ultra low power consumption (Max: 0.08W), Resolution: 128*64, Viewing angle: 160º, No Backlight, i2c communication, Driver
IC: SSD1306 (Datasheet)
Rotary Encoder Module (KY-040)

Download the Adafruit_SSD1306 Arduino library
This is a library for Adafruit Monochrome OLEDs based on SSD1306 drivers
Download Adafruit GFX Library (Graphics library)This is the core graphics library for all Adafruit displays, providing a common set of graphics primitives (points, lines, circles, etc.).
Arduino Menu-System (jonblack/arduino-menusystem) : implementing a menu system

Note that the menu library is designed for LCD navigation and serial terminal input. In the arduino sketch i did a quick and dirty editing to the code to make it work with the OLED and rotary encoder.

The complete Arduino Sketch !!

No comments:

Post a Comment