Skip to content

Commit c93f601

Browse files
committed
update_firmware
1 parent 689f6ab commit c93f601

File tree

4 files changed

+22
-3
lines changed

4 files changed

+22
-3
lines changed

esp32-20230426-v1.20.0.bin

1.49 MB
Binary file not shown.

main.py

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import time
2+
import machine
3+
import adafruit_mlx90640
4+
5+
machine.freq(240000000)
6+
mlx = adafruit_mlx90640.MLX90640(machine.I2C(0, scl=machine.Pin(22), sda=machine.Pin(21), freq=400000))
7+
mlx.refresh_rate = adafruit_mlx90640.RefreshRate.REFRESH_2_HZ
8+
frame = [0] * 768
9+
time.sleep(1)
10+
11+
while True:
12+
try:
13+
mlx.getFrame(frame)
14+
print(frame)
15+
16+
except:
17+
machine.reset()
18+
19+
time.sleep(1)

main_amg8833.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
while True:
1010
try:
11-
print(amg.pixel())
11+
print(amg.pixel())
1212

1313
except:
1414
machine.reset()

pymakr.conf

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"note.log",
1111
"README.md",
1212
"requirements.txt",
13-
"adafruit_mlx90640.py",
1413
"main_mlx90640.py",
1514
"adafruit_amg8833.py",
1615
"main_amg8833.py",
@@ -26,7 +25,8 @@
2625
"sct013.py",
2726
"main_sct013.py",
2827
"remote.py",
29-
"main_remote.py"
28+
"main_remote.py",
29+
"main_mlx90640.py",
3030
],
3131
"name": "fp_micropython"
3232
}

0 commit comments

Comments
 (0)