Skip to content

Commit bfd56d4

Browse files
authored
Merge pull request #6094 from ladyada/main
fix missing pins, speed up
2 parents 01d8808 + a9d87e6 commit bfd56d4

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

ports/espressif/boards/adafruit_esp32s2_camera/board.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ displayio_fourwire_obj_t board_display_obj;
4141
#define DELAY 0x80
4242

4343
uint8_t display_init_sequence[] = {
44-
0x01, 0 | DELAY, 150, // SWRESET
45-
0x11, 0 | DELAY, 255, // SLPOUT
44+
0x01, 0 | DELAY, 120, // SWRESET
45+
0x11, 0 | DELAY, 5, // SLPOUT
4646
0x36, 1, 0b10100000, // _MADCTL for rotation 0
4747
0x3a, 1, 0x55, // COLMOD - 16bit color
48-
0x21, 0 | DELAY, 10, // _INVON
49-
0x13, 0 | DELAY, 10, // _NORON
50-
0x29, 0 | DELAY, 255, // _DISPON
48+
0x21, 0, // _INVON
49+
0x13, 0, // _NORON
50+
0x29, 0 | DELAY, 5, // _DISPON
5151
};
5252

5353
void board_init(void) {
@@ -59,7 +59,7 @@ void board_init(void) {
5959
&pin_GPIO39, // TFT_DC Command or data
6060
&pin_GPIO40, // TFT_CS Chip select
6161
&pin_GPIO41, // TFT_RESET Reset
62-
5000000, // Baudrate
62+
40000000, // Baudrate
6363
0, // Polarity
6464
0); // Phase
6565

ports/espressif/boards/adafruit_esp32s2_camera/pins.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,16 @@ STATIC const mp_rom_obj_tuple_t camera_data_tuple = {
2121
STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
2222
CIRCUITPYTHON_BOARD_DICT_STANDARD_ITEMS
2323

24-
{ MP_ROM_QSTR(MP_QSTR_TFT_MOSI), MP_ROM_PTR(&pin_GPIO35) },
25-
{ MP_ROM_QSTR(MP_QSTR_TFT_SCK), MP_ROM_PTR(&pin_GPIO36) },
24+
{ MP_ROM_QSTR(MP_QSTR_MOSI), MP_ROM_PTR(&pin_GPIO35) },
25+
{ MP_ROM_QSTR(MP_QSTR_SCK), MP_ROM_PTR(&pin_GPIO36) },
26+
{ MP_ROM_QSTR(MP_QSTR_MISO), MP_ROM_PTR(&pin_GPIO37) },
2627
{ MP_ROM_QSTR(MP_QSTR_TFT_BACKLIGHT), MP_ROM_PTR(&pin_GPIO38) },
2728
{ MP_ROM_QSTR(MP_QSTR_TFT_DC), MP_ROM_PTR(&pin_GPIO39) },
2829
{ MP_ROM_QSTR(MP_QSTR_TFT_CS), MP_ROM_PTR(&pin_GPIO40) },
2930
{ MP_ROM_QSTR(MP_QSTR_TFT_RESET), MP_ROM_PTR(&pin_GPIO41) },
3031

3132
{ MP_ROM_QSTR(MP_QSTR_CARD_CS), MP_ROM_PTR(&pin_GPIO4) },
33+
{ MP_ROM_QSTR(MP_QSTR_CARD_POWER), MP_ROM_PTR(&pin_GPIO1) },
3234

3335
{ MP_ROM_QSTR(MP_QSTR_IRQ), MP_ROM_PTR(&pin_GPIO3) },
3436

0 commit comments

Comments
 (0)