Skip to content

Commit ce5e7b6

Browse files
author
Hansen0314
committedJun 10, 2020
rm:Redundant variables
1 parent 1ff8ea9 commit ce5e7b6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed
 

‎seeed_mlx9064x.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import math
33
import time
44
from grove.i2c import Bus
5+
56
# This relies on the driver written by siddacious and can be found at:
67
# https://github.com/adafruit/Adafruit_CircuitPython_MLX90640
78

@@ -723,7 +724,6 @@ class grove_mxl90641(MLX9064X_I2C_Driver):
723724
tgc = 0
724725
KsTa = 0
725726
resolutionEE = 0
726-
calibrationModeEE = 0
727727
ksTo = [0] * 8
728728
ct = [0] * 8
729729
alpha = [0] * 192
@@ -737,7 +737,6 @@ class grove_mxl90641(MLX9064X_I2C_Driver):
737737
cpOffset = 0
738738
ilChessC = [0] * 3
739739
brokenPixels = [0xFFFF] * 5
740-
outlierPixels = [0xFFFF] * 5
741740
cpKta = 0
742741
cpKv = 0
743742
emissivityEE = 0
@@ -751,7 +750,7 @@ def __init__(self,address=0x33):
751750

752751
@property
753752
def refresh_rate(self):
754-
""" How fast the MLX90640 will spit out data. Start at lowest speed in
753+
""" How fast the MLX90641 will spit out data. Start at lowest speed in
755754
RefreshRate and then slowly increase I2C clock rate and rate until you
756755
max out. The sensor does not like it if the I2C host cannot 'keep up'!"""
757756
controlRegister = [0]
@@ -768,8 +767,8 @@ def refresh_rate(self, rate):
768767

769768
def getFrame(self, framebuf):
770769
""" Request both 'halves' of a frame from the sensor, merge them
771-
and calculate the temperature in C for each of 32x24 pixels. Placed
772-
into the 768-element array passed in! """
770+
and calculate the temperature in C for each of 12x16 pixels. Placed
771+
into the 192-element array passed in! """
773772
emissivity = 0.95
774773
tr = 23.15
775774
mlx90641Frame = [0] * 242

0 commit comments

Comments
 (0)
Please sign in to comment.