Skip to content

Commit 4ab2dc9

Browse files
authored
Merge pull request #17 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 9f36932 + 1c473b5 commit 4ab2dc9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/ssd1327_gamma.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
displayio.release_displays()
1010

1111
# Use for I2C
12-
i2c = board.I2C()
12+
i2c = board.I2C() # uses board.SCL and board.SDA
13+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1314
display_bus = displayio.I2CDisplay(i2c, device_address=0x3D)
1415

1516
# Use for SPI

examples/ssd1327_simpletest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
displayio.release_displays()
1111

1212
# Use for I2C
13-
i2c = board.I2C()
13+
i2c = board.I2C() # uses board.SCL and board.SDA
14+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1415
display_bus = displayio.I2CDisplay(i2c, device_address=0x3D)
1516

1617
# Use for SPI

0 commit comments

Comments
 (0)