jamesdanielv / thermal_cam_mlx90640

same as thermal cam project but with mlx90640 sensor
16 stars 4 forks source link

customSmallCacheForMemReads needs to be false currently #4

Closed jamesdanielv closed 5 years ago

jamesdanielv commented 5 years ago

customSmallCacheForMemReads is not implemented. caching has been done on double resolution and some other areas, but caching is not yet done for ram reads from i2c.

this means that customSmallCacheForMemReads should be set to false. it might work on teensy, but it uses all 768 cells at a time for loading the cache. this uses too much memory for arduino 328 chip. however caching 32 -64 words of data at a time is the sweet spot for i2c efficiency. it will be implemented soon.

I think this is talked about in the help section or the readme, but i wanted it to be known here until i upload version with caching of the i2c sensor ram data reads.

jamesdanielv commented 5 years ago

i implemented a small i2c cache. it works even on arduino, however i think that the i2c even on arduino is cached a little as there is little boost currently. i'm going to take a further look at this as to why performance only improves slightly.