|
|
@@ -110,7 +110,7 @@ if mlx90640.init(0,mlx90640.FPS4HZ) then
|
|
|
sys.wait(500) -- 稍等片刻
|
|
|
while 1 do
|
|
|
mlx90640.feed() -- 取一帧数据
|
|
|
- mlx90640.draw2lcd(0, 0 ,32 ,24)-- 需提前把lcd初始化好
|
|
|
+ mlx90640.draw2lcd(0, 0 ,1)-- 需提前把lcd初始化好
|
|
|
sys.wait(250) -- 默认是4HZ
|
|
|
end
|
|
|
else
|
|
|
@@ -329,6 +329,7 @@ static uint8_t * luat_interpolation_double(uint8_t *src, uint16_t rows,uint16_t
|
|
|
int w2 = w1*2;
|
|
|
//int h2 = h1*2;
|
|
|
uint8_t* dst = (uint8_t*)luat_heap_malloc(rows*cols*4);
|
|
|
+ LLOGD("luat_interpolation_double src:%p rows:%d cols:%d rows*cols*4:%d dst:%p ",src,rows,cols,rows*cols*4,dst);
|
|
|
for (size_t y = 0; y < h1; y++){
|
|
|
for (size_t x = 0; x < w1; x++){
|
|
|
dst[y*2*w2+x*2] = src[y*w1+x];
|