Skip to content

Added some comments about pin-usage to 2 other files including the readme #195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions examples/ssd1306_128x32_i2c/ssd1306_128x32_i2c.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
4 changes: 4 additions & 0 deletions examples/ssd1306_128x64_i2c/ssd1306_128x64_i2c.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down