Merge pull request #2389 from mikeysklar/mikeysklar-2

fix for 7seg test script, removed negative numbers, added str cast fo…
This commit is contained in:
Anne Barela 2023-01-26 14:28:04 -05:00 committed by GitHub
commit 85e2c3e5f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,11 +31,11 @@ display[2] = 'A'
display[3] = 'B'
time.sleep(1)
numbers = [0.0, 1.0, -1.0, 0.55, -0.55, 10.23, -10.2, 100.5, -100.5]
numbers = [0.0, 1.0, 0.55, 10.23, 100.5]
# print negative and positive floating point numbers
# print floating point numbers
for i in numbers:
display.print(i)
display.print(str(i))
time.sleep(0.5)
# print hex values, enable colon