2
2
import math
3
3
import time
4
4
from grove .i2c import Bus
5
+
5
6
# This relies on the driver written by siddacious and can be found at:
6
7
# https://github.com/adafruit/Adafruit_CircuitPython_MLX90640
7
8
@@ -723,7 +724,6 @@ class grove_mxl90641(MLX9064X_I2C_Driver):
723
724
tgc = 0
724
725
KsTa = 0
725
726
resolutionEE = 0
726
- calibrationModeEE = 0
727
727
ksTo = [0 ] * 8
728
728
ct = [0 ] * 8
729
729
alpha = [0 ] * 192
@@ -737,7 +737,6 @@ class grove_mxl90641(MLX9064X_I2C_Driver):
737
737
cpOffset = 0
738
738
ilChessC = [0 ] * 3
739
739
brokenPixels = [0xFFFF ] * 5
740
- outlierPixels = [0xFFFF ] * 5
741
740
cpKta = 0
742
741
cpKv = 0
743
742
emissivityEE = 0
@@ -751,7 +750,7 @@ def __init__(self,address=0x33):
751
750
752
751
@property
753
752
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
755
754
RefreshRate and then slowly increase I2C clock rate and rate until you
756
755
max out. The sensor does not like it if the I2C host cannot 'keep up'!"""
757
756
controlRegister = [0 ]
@@ -768,8 +767,8 @@ def refresh_rate(self, rate):
768
767
769
768
def getFrame (self , framebuf ):
770
769
""" 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! """
773
772
emissivity = 0.95
774
773
tr = 23.15
775
774
mlx90641Frame = [0 ] * 242
0 commit comments