Skip to content

Commit 89daaec

Browse files
committed
f-string for seesaw_product
1 parent c481937 commit 89daaec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/seesaw_ano_rotary_7segment_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
display = segments.Seg14x4(i2c, address=0x70)
1919

2020
seesaw_product = (seesaw.get_version() >> 16) & 0xFFFF
21-
print("Found product {}".format(seesaw_product))
21+
print(f"Found product {seesaw_product}")
2222
if seesaw_product != 5740:
2323
print("Wrong firmware loaded? Expected 5740")
2424

examples/seesaw_ano_rotary_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
seesaw = seesaw.Seesaw(i2c, addr=0x49)
1717

1818
seesaw_product = (seesaw.get_version() >> 16) & 0xFFFF
19-
print("Found product {}".format(seesaw_product))
19+
print(f"Found product {seesaw_product}")
2020
if seesaw_product != 5740:
2121
print("Wrong firmware loaded? Expected 5740")
2222

0 commit comments

Comments
 (0)