Skip to content

Commit 6d0fd37

Browse files
authored
Merge pull request #110 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 877ee6c + 567a52e commit 6d0fd37

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/ht16k33_animation_demo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
# Initialize the I2C bus
1616
i2c = board.I2C() # uses board.SCL and board.SDA
17+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1718
display = Seg14x4(i2c, auto_write=False)
1819
# Brightness of the display (0 to 15)
1920
display.brightness = 0.3

examples/ht16k33_segments_14x4_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Display connected to STEMMA QT connector.
1010
display = segments.Seg14x4(board.STEMMA_I2C())
1111
# Display connected to I2C pins.
12-
# display = segments.Seg14x4(board.I2C())
12+
# display = segments.Seg14x4(board.I2C()) # uses board.SCL and board.SDA
1313

1414
# This section displays four 0's across the display. The code shows four
1515
# different ways to use the set_digit_raw function. Each is labeled below.

0 commit comments

Comments
 (0)