Updating HT16K33 code to work with version 2.0
This commit is contained in:
parent
b2ec253074
commit
b68e8b6e9b
2 changed files with 2 additions and 4 deletions
|
|
@ -35,11 +35,9 @@ max_rate = 180
|
|||
# Seven Segment FeatherWing setup
|
||||
i2c = board.I2C()
|
||||
display_A = Seg7x4(i2c, address=0x70) # this will be the BPM display
|
||||
display_A.brightness = 15
|
||||
display_A.fill(0) # Clear the display
|
||||
# Second display has A0 address jumpered
|
||||
display_B = Seg7x4(i2c, address=0x71) # this will be the % target display
|
||||
display_B.brightness = 15
|
||||
display_B.fill(0) # Clear the display
|
||||
|
||||
# display_A "b.P.M."
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ display = segments.Seg14x4(i2c)
|
|||
# Clear the display.
|
||||
display.fill(0)
|
||||
|
||||
# set brightness, range 1-15, 15 max brightness
|
||||
display.brightness = 15
|
||||
# set brightness, range 0-1.0, 1.0 max brightness
|
||||
display.brightness = 1.0
|
||||
|
||||
# show phrase on alphanumeric display
|
||||
message = "THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG"
|
||||
|
|
|
|||
Loading…
Reference in a new issue