We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31b27eb commit 4e5ca10Copy full SHA for 4e5ca10
examples/bargraph.py
@@ -1,4 +1,3 @@
1
-import os
2
import sys
3
import time
4
tests/tools.py
@@ -57,7 +57,7 @@ def __init__(self, i2c_bus):
57
self.regs[0x04] = 0x02 # Control Register
58
59
# Prime the Calibrated Data registers with fake data
60
- self.regs[0x14:24] = [ord(c) if type(c) is str else c for c in struct.pack(
+ self.regs[0x14:24] = [ord(c) if isinstance(c, str) else c for c in struct.pack(
61
'>ffffff',
62
*reversed(CALIBRATED_VALUES)
63
)]
0 commit comments