File tree 2 files changed +12
-3
lines changed
variants/adafruit_camera_esp32s3
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ static const uint8_t SD_CS = 48;
34
34
static const uint8_t SD_CHIP_SELECT = 48 ;
35
35
static const uint8_t SPEAKER = 46 ;
36
36
37
- static const uint8_t SDA = 33 ;
38
- static const uint8_t SCL = 34 ;
37
+ static const uint8_t SCL = 33 ;
38
+ static const uint8_t SDA = 34 ;
39
39
40
40
static const uint8_t SS = 48 ;
41
41
static const uint8_t MOSI = 35 ;
Original file line number Diff line number Diff line change @@ -31,6 +31,15 @@ extern "C" {
31
31
// Initialize variant/board, called before setup()
32
32
void initVariant (void )
33
33
{
34
-
34
+ pinMode (TFT_BACKLIGHT, OUTPUT);
35
+ digitalWrite (TFT_BACKLIGHT, LOW);
36
+ pinMode (SD_CS, OUTPUT);
37
+ digitalWrite (SD_CS, HIGH);
38
+ pinMode (TFT_CS, OUTPUT);
39
+ digitalWrite (TFT_CS, HIGH);
40
+ pinMode (TFT_RESET, OUTPUT);
41
+ digitalWrite (TFT_RESET, LOW);
42
+ delay (1 );
43
+ digitalWrite (TFT_RESET, HIGH);
35
44
}
36
45
}
You can’t perform that action at this time.
0 commit comments