Huge thanks to Jacob-Lundstrom for its repository. It was the only one that I could get working properly with my Lepton camera.
Warning
Pinout schema doesn't include the potentiometer yet
| ESP32 Pin | Lepton Pin | Function |
|---|---|---|
| D17 | Pin 5 | SDA |
| D15 | Pin 8 | SCL |
| D22 | Pin 10 | CS |
| D16 | Pin 7 | SCK |
| D19 | Pin 12 | MISO |
| GND | GND | Ground |
| 3V3 | Power In | Power |
| ESP32 Pin | ST7735 Pin | Function |
|---|---|---|
| 3V3 | VCC | Power |
| GND | GND | Ground |
| D5 | CS | Chip Select |
| D2 | RST | Reset |
| D4 | A0 | Command/Data |
| D23 | SDA | Data (MOSI) |
| D18 | SCK | SPI Clock |
| 3V3 | LED | Backlight |
Depending if you prefer accuracy over speed, you can choose different programs. Lepton_Grayscale_v6_completed.ino is the latest version with proper handling of Lepton syncing at boot and implement a scale potentiometer to adjust contrast if used in a wide range of temperature, but is focused on displaying images instead of measuring. For temperature accuracy, choose Lepton_Grayscale_v1.ino.
Sometimes framerate drops because the sensor loses sync with the ESP32 over the SPI bus. Maybe there are more reliable methods for handling this, hardware or software. One could use the VSYNC pin to let the sensor tell the ESP32 to listen for incoming images, maybe that would be more reliable. Sadly, I didn't manage to get it to work.
