Datasheet
Finally, connect the pins to your Arduino -
GND goes to ground
Vin goes to 5V
DATA to digital 9
CLK to digital 10
D/C to digital 11
RST to digital 13
CS to digital 12
(Note: If using the display with other SPI devices, D/C, CLK and DAT may be shared, but CS must be unique for each
device.)
This matches the example code we have written. Once you get this working, you can try another set of pins.
Finally you can run the File→Sketchbook→Libraries→Adafruit_SSD1306→SSD1306_128x64_spi example
© Adafruit Industries https://learn.adafruit.com/monochrome-oled-breakouts Page 15 of 28










