![Adafruit SSD1306 Manual Download Page 13](http://html1.mh-extra.com/html/adafruit/ssd1306/ssd1306_manual_2845859013.webp)
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
http://learn.adafruit.com/monochrome-oled-breakouts
Page 13 of 22