FLIR Lepton 2 --> VGA
Rayman
Posts: 14,744
The FLIR Lepton2 is thermal imager with 80x60 resolution.
This code interacts with FLIR over I2C and then receives video data over SPI.
The frame rate is 9 Hz, although it sends the same frame repeatedly until a new one is available.
This code takes the raw data and then scales it to between 0 and 255 for the VGA driver.
There are several palettes to choose from.
Update: Added a version (2C) that works with Prop Tool 2.5.3.
This code interacts with FLIR over I2C and then receives video data over SPI.
The frame rate is 9 Hz, although it sends the same frame repeatedly until a new one is available.
This code takes the raw data and then scales it to between 0 and 255 for the VGA driver.
There are several palettes to choose from.
Update: Added a version (2C) that works with Prop Tool 2.5.3.
Comments
Reason is that old p1 I2C driver had 16-bit addressing where P2 needs 24-bit for large programs...
I've put fixed code in top post.
Might have to use a smartpin synchronous serial receive mode to boost the serial data rate.
Seems I need to move from 9 MHz to 20 MHz on SPI clock to get the best data...
Updated the code a bit so it works latest Prop Tool, posted in top post just now.
Don't have a VGA monitor handy, so it's rigged to just send first pixel value over serial.
But, the VGA code is still there, it probably works, just needs to be called.