Skip to content

Commit fb926e8

Browse files
authored
Update mlx90640_pygamer.py
Making pylint happy...
1 parent 0bf23ba commit fb926e8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

examples/mlx90640_pygamer.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
last_color = number_of_colors-1 # Last color in palette
1212
palette = displayio.Palette(number_of_colors) # Palette with all our colors
1313

14-
## Heatmap code inspired from:
15-
## http://www.andrewnoske.com/wiki/Code_-_heatmaps_and_color_gradients
14+
## Heatmap code inspired from: http://www.andrewnoske.com/wiki/Code_-_heatmaps_and_color_gradients
1615
color_A = [[0, 0, 0], [0, 0, 255], [0, 255, 255], [0, 255, 0], [255, 255, 0], \
1716
[255, 0, 0], [255, 255, 255]]
1817
color_B = [[0, 0, 255], [0, 255, 255] , [0, 255, 0], [255, 255, 0], [255, 0, 0]]
@@ -81,11 +80,8 @@ def MakeHeatMapColor():
8180
print("MLX addr detected on I2C")
8281
print([hex(i) for i in mlx.serial_number])
8382

84-
# Try whatever refresh_rate give the best result for you. 4_HZ seems to be optimal
85-
8683
#mlx.refresh_rate = adafruit_mlx90640.RefreshRate.REFRESH_2_HZ
8784
mlx.refresh_rate = adafruit_mlx90640.RefreshRate.REFRESH_4_HZ
88-
#mlx.refresh_rate = adafruit_mlx90640.RefreshRate.REFRESH_8_HZ
8985

9086
frame = [0] * 768
9187

0 commit comments

Comments
 (0)