I noticed that the MLX90640_CalculateTo() routine is very slow and has a lot of improvement potential.
With just a few changes i was able to make it about 10 times as fast (on my ESP8266).
With that i got the total speed from <2Hz to ~8Hz.
The lines i changed have the original line as a comment on top.
And i added the Qsqrt() function th get the square root faster.
`
I noticed that the MLX90640_CalculateTo() routine is very slow and has a lot of improvement potential. With just a few changes i was able to make it about 10 times as fast (on my ESP8266). With that i got the total speed from <2Hz to ~8Hz. The lines i changed have the original line as a comment on top. And i added the Qsqrt() function th get the square root faster. `
`