This code was written for an Arduino nano every to control a Photography Turntable. The turntable supports a menu system using a rotary encoder as the menu select and an OLED display for the menu itself.
The following libraries are required:
Adafruit GFX Library by Adafruit Search for "Adafruit GFX Library" in the library manager, or install manually from https://github.com/adafruit/Adafruit-GFX-Library
Adafruit BusIO Library by Adafruit Search for "Adafruit BusIO Library" in the library manager, or install manually from https://github.com/adafruit/Adafruit_BusIO
Adafruit SSD1306 Library by Adafruit Search for "Adafruit SSD1306 Library" in the library manager, or install manually https://github.com/adafruit/Adafruit_SSD1306
ClickEncoder by karl@pitrich.com Install from https://github.com/0xPIT/encoder/tree/arduino
AccelStepper by Mike McCauley Search for "AccelStepper" in the library manager, or install manually from http://www.airspayce.com/mikem/arduino/AccelStepper/