update
This commit is contained in:
@@ -151,7 +151,7 @@ uint16_t* take_picture() {
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
int lepton_restart() {
|
void lepton_restart() {
|
||||||
while (1) {
|
while (1) {
|
||||||
delay(LEP_RESET_FAIL_RETRY_SECS*1000);
|
delay(LEP_RESET_FAIL_RETRY_SECS*1000);
|
||||||
|
|
||||||
|
@@ -14,24 +14,22 @@
|
|||||||
// #define I2C_MASTER_SCL_PIN 22 // SCL 8
|
// #define I2C_MASTER_SCL_PIN 22 // SCL 8
|
||||||
|
|
||||||
#define LEP_SCK_PIN 14 // SPI_CLK 18
|
#define LEP_SCK_PIN 14 // SPI_CLK 18
|
||||||
#define LEP_CSN_PIN 15 // SPI_CS 10
|
#define LEP_CSN_PIN 10 // SPI_CS 10
|
||||||
#define LEP_VSYNC_PIN 13 // GPIO3/VSYNC 15
|
#define LEP_VSYNC_PIN 12 // GPIO3/VSYNC 15
|
||||||
#define LEP_MISO_PIN 12 // SPI_MISO 12
|
#define LEP_MISO_PIN 13 // SPI_MISO 12
|
||||||
#define LEP_RESET_PIN 16 // RESET_L 17
|
#define LEP_RESET_PIN 16 // RESET_L 17
|
||||||
|
|
||||||
#define I2C_MASTER_SDA_PIN 2 // SDA 5
|
#define I2C_MASTER_SDA_PIN 8 // SDA 5
|
||||||
#define I2C_MASTER_SCL_PIN 4 // SCL 8
|
#define I2C_MASTER_SCL_PIN 9 // SCL 8
|
||||||
|
|
||||||
// I2C
|
// I2C
|
||||||
#define I2C_MASTER_NUM 1
|
#define I2C_MASTER_NUM 1
|
||||||
#define I2C_MASTER_FREQ_HZ 100000
|
#define I2C_MASTER_FREQ_HZ 100000
|
||||||
|
|
||||||
// SPI
|
// SPI
|
||||||
// Lepton uses HSPI (no MOSI)
|
#define LEP_SPI_HOST SPI2_HOST
|
||||||
// Host SPI Slave uses VSPI (no MOSI)
|
#define LEP_DMA_NUM SPI_DMA_CH_AUTO
|
||||||
#define LEP_SPI_HOST HSPI_HOST
|
#define LEP_SPI_FREQ_HZ 10000000
|
||||||
#define LEP_DMA_NUM 2
|
|
||||||
#define LEP_SPI_FREQ_HZ 16000000
|
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user