diff --git a/README.md b/README.md index a0439dd9..a4ba5adb 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ This is a library for our Monochrome OLEDs based on SSD1306 drivers Pick one up today in the adafruit shop! ------> http://www.adafruit.com/category/63_98 -These displays use I2C or SPI to communicate, 2 to 5 pins are required to interface. +These displays use I2C or SPI to communicate, 2 to 5 pins are required to interface. Arduinos have dedicated I2C-pins that are used by the Wire-Library. Like A4(SDA), A5(SCL) on a UNO or 20(SDA), 21(SCL) on a MEGA 2560. Look out for the I2C-pins of your board. Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing diff --git a/examples/ssd1306_128x32_i2c/ssd1306_128x32_i2c.ino b/examples/ssd1306_128x32_i2c/ssd1306_128x32_i2c.ino index 03497858..cd949b3b 100644 --- a/examples/ssd1306_128x32_i2c/ssd1306_128x32_i2c.ino +++ b/examples/ssd1306_128x32_i2c/ssd1306_128x32_i2c.ino @@ -27,6 +27,10 @@ #define SCREEN_HEIGHT 32 // OLED display height, in pixels // Declaration for an SSD1306 display connected to I2C (SDA, SCL pins) +// The pins for I2C are fixed and defined by the Wire-library. +// On an arduino UNO it's: A4(SDA), A5(SCL) +// On an arduino DUE or a MEGA2560 it's: 20(SDA), 21(SCL) +// On an arduino LEONARDO it's: 2(SDA), 3(SCL), ... #define OLED_RESET 4 // Reset pin # (or -1 if sharing Arduino reset pin) Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET); diff --git a/examples/ssd1306_128x64_i2c/ssd1306_128x64_i2c.ino b/examples/ssd1306_128x64_i2c/ssd1306_128x64_i2c.ino index 812bac0b..e0e13c93 100644 --- a/examples/ssd1306_128x64_i2c/ssd1306_128x64_i2c.ino +++ b/examples/ssd1306_128x64_i2c/ssd1306_128x64_i2c.ino @@ -27,6 +27,10 @@ #define SCREEN_HEIGHT 64 // OLED display height, in pixels // Declaration for an SSD1306 display connected to I2C (SDA, SCL pins) +// The pins for I2C are fixed and defined by the Wire-library. +// On an arduino UNO it's: A4(SDA), A5(SCL) +// On an arduino DUE or a MEGA2560 it's: 20(SDA), 21(SCL) +// On an arduino LEONARDO it's: 2(SDA), 3(SCL), ... #define OLED_RESET 4 // Reset pin # (or -1 if sharing Arduino reset pin) Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);