Skip to content

Commit d549865

Browse files
Updated exmaple
1 parent 30f1a04 commit d549865

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/AMG8833.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
img = None
2424
while True:
2525
data = sensor.read_register(0x0E, 2)
26-
thr_tmp = int.from_bytes(data, byteorder="little", signed=True) * 0.0625
26+
thr_tmp = 0.0625 * int.from_bytes(data, byteorder="little", signed=True)
2727

2828
data = sensor.read_register(0x80, 128)
29-
T = 0.25/16 * (np.frombuffer(data, dtype=np.int16).reshape(8,8) << 4)
29+
T = 0.25 * (np.frombuffer(data, dtype=np.int16).reshape(8,8) << 4) / 16
3030
T = np.flipud(T)
3131
T = np.fliplr(T)
3232

0 commit comments

Comments
 (0)