test
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
#include "i2c.h"
|
||||
#include "vospi.h"
|
||||
#include <cstring>
|
||||
#include <Arduino.h>
|
||||
|
||||
|
||||
// lepton image and telem buffer
|
||||
@@ -45,12 +44,12 @@ bool lepton_io_init()
|
||||
}
|
||||
|
||||
// initialize GPIO pins
|
||||
pinMode(LEP_VSYNC_PIN, INPUT);
|
||||
gpio_set_direction(LEP_VSYNC_PIN, GPIO_MODE_INPUT);
|
||||
#ifdef LEP_RESET_PIN
|
||||
pinMode(LEP_RESET_PIN, OUTPUT);
|
||||
digitalWrite(LEP_RESET_PIN, LEP_RESET_ON);
|
||||
delay(10);
|
||||
digitalWrite(LEP_RESET_PIN, LEP_RESET_OFF);
|
||||
gpio_set_direction(LEP_RESET_PIN, GPIO_MODE_OUTPUT);
|
||||
gpio_set_level(LEP_RESET_PIN, LEP_RESET_ON);
|
||||
vTaskDelay(pdMS_TO_TICKS(10));
|
||||
gpio_set_level(LEP_RESET_PIN, LEP_RESET_OFF);
|
||||
#endif
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user