Starter code for using the SH1106 on an arduino, specifically this one
STEPS
- Set up the arduino with the following pin config from user
_r4z_
in the microcenter reviews:
GND ==> GND
VCC ==> 5V
CLK ==> D13
MOSI ==> D11
RES ==> D8
DC ==> D9
CS ==> D10
-
Create a new sketch in the arduino IDE.
-
Download u8g2 library from the library manager in the arduino IDE
-
Copy the HelloWorldDisplay.ino contents into the Arduino IDE
-
Upload and it should work!