File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 14
14
15
15
# Initialize the I2C bus
16
16
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
17
18
display = Seg14x4 (i2c , auto_write = False )
18
19
# Brightness of the display (0 to 15)
19
20
display .brightness = 0.3
Original file line number Diff line number Diff line change 9
9
# Display connected to STEMMA QT connector.
10
10
display = segments .Seg14x4 (board .STEMMA_I2C ())
11
11
# Display connected to I2C pins.
12
- # display = segments.Seg14x4(board.I2C())
12
+ # display = segments.Seg14x4(board.I2C()) # uses board.SCL and board.SDA
13
13
14
14
# This section displays four 0's across the display. The code shows four
15
15
# different ways to use the set_digit_raw function. Each is labeled below.
You can’t perform that action at this time.
0 commit comments