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 and finally 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_128x32_SPI example
If you're using the 128x32 OLED, be sure to uncomment the "#define SSD1306_128_32" in the top of
Adafruit_SSD1306.h to change the buffer size
© Adafruit Industries https://learn.adafruit.com/monochrome-oled-breakouts Page 17 of 28










