![Adafruit SSD1306 Скачать руководство пользователя страница 12](http://html1.mh-extra.com/html/adafruit/ssd1306/ssd1306_manual_2845859012.webp)
The display can be used with any I2C microcontroller. Because the I2C interface is for 'writing' to
the display only, you'll still have to buffer the entire 512 byte frame in the microcontroller RAM -
you can't read data from the OLED (even though I2C is a bidirectional protocol).
To start, you'll need to solder the two jumpers on the back of the OLED. Both must be
soldered 'closed' for I2C to work!
Finally, connect the pins to your Arduino
GND goes to ground
Vin goes to 5V
Data to I2C SDA (on the Uno, this is A4 on the Mega it is 20 and on the Leonardo digital 2)
Clk to I2C SCL (on the Uno, this is A5 on the Mega it is 21 and on the Leonardo digital 3)
RST to digital 4 (you can change this pin in the code, later)
This matches the example code we have written. Once you get this working, you can try a
different Reset pin (you can't change the SCA and SCL pins).
Finally you can run the
File
®
®
Sketchbook
®
®
Libraries
®
®
Adafruit_SSD1306
®
®
SSD1306_128x64_i2c example
Using with SPI
The breakouts are ready for SPI by default, but if you used them for I2C at some point, you'll
need to remove the solder jumpers. Use wick or a solder sucker to make sure both are clear!
© Adafruit
Industries
http://learn.adafruit.com/monochrome-oled-breakouts
Page 12 of 22