Skip to content

Commit 7410397

Browse files
authored
Merge pull request #30 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents bdb5529 + 0d6a45e commit 7410397

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/displayio_ssd1306_featherwing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414

1515
displayio.release_displays()
1616

17-
i2c = board.I2C()
17+
i2c = board.I2C() # uses board.SCL and board.SDA
18+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1819
display_bus = displayio.I2CDisplay(i2c, device_address=0x3C)
1920
display = adafruit_displayio_ssd1306.SSD1306(display_bus, width=128, height=32)
2021

examples/displayio_ssd1306_simpletest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
oled_reset = board.D9
1818

1919
# Use for I2C
20-
i2c = board.I2C()
20+
i2c = board.I2C() # uses board.SCL and board.SDA
21+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
2122
display_bus = displayio.I2CDisplay(i2c, device_address=0x3C, reset=oled_reset)
2223

2324
# Use for SPI

0 commit comments

Comments
 (0)