MakerBot Print is our newest print-prepration software, which supports native CAD files and STL assemblies,
allows you to interact with all your printers via the Cloud, and many other exciting new features.

Download Now

Report as inappropriate

So I added in that line of code, and ran the Serial monitor.

Interestingly enough, the encoder seems to be working. It definitely reads a change when I turn the knob. Pressing the button doesn't seem to do anything. So at the very least the code seems to be working.

Still nothing from the OLED and motor.

It just dawned on me - I omitted the 10k resistors. (I couldn't find any in my parts box) Could that be causing my problems?

UPDATE: I also discovered that my OLED is an SSH1106, not an SSD1306. Perhaps that's why it isn't working.
(The one on your page has a dead link, and I didn't know there would be a difference. Had the same pinout, though...)

This is the one I bought: https://www.aliexpress.com/item/1-3-inch-IIC-I2C-Serial-128x64-OLED-LCD-Display-White-Screen-Module-For-Arduino/32830144222.html?spm=a2g0s.9042311.0.0.61e64c4daWiFu3