Skip to content

Commit 767b7a0

Browse files
author
ladyada
committed
compiling
1 parent dd266f2 commit 767b7a0

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

ports/espressif/boards/adafruit_esp32s3_camera/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void board_init(void) {
8484
MIPI_COMMAND_WRITE_MEMORY_START, // Write memory command
8585
display_init_sequence,
8686
sizeof(display_init_sequence),
87-
&pin_GPIO41, // backlight pin
87+
NULL, // backlight pin
8888
NO_BRIGHTNESS_COMMAND,
8989
1.0f, // brightness
9090
false, // single_byte_bounds

ports/espressif/boards/adafruit_esp32s3_camera/mpconfigboard.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,9 @@
2929
#define MICROPY_HW_BOARD_NAME "Adafruit Camera"
3030
#define MICROPY_HW_MCU_NAME "ESP32S3"
3131

32-
#define MICROPY_HW_NEOPIXEL (&pin_GPIO21)
32+
#define MICROPY_HW_NEOPIXEL (&pin_GPIO1)
3333
#define MICROPY_HW_NEOPIXEL_COUNT (1)
3434

35-
#define MICROPY_HW_LED_STATUS (&pin_GPIO1)
36-
3735
#define DEFAULT_I2C_BUS_SDA (&pin_GPIO33)
3836
#define DEFAULT_I2C_BUS_SCL (&pin_GPIO34)
3937

ports/espressif/boards/adafruit_esp32s3_camera/mpconfigboard.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ CIRCUITPY_ESP_FLASH_FREQ = 40m
1010
CIRCUITPY_ESP_FLASH_SIZE = 4MB
1111

1212
CIRCUITPY_ESPCAMERA = 1
13+
CIRCUITPY_ULAB = 0

ports/espressif/boards/adafruit_esp32s3_camera/pins.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
2424
{ MP_ROM_QSTR(MP_QSTR_MOSI), MP_ROM_PTR(&pin_GPIO35) },
2525
{ MP_ROM_QSTR(MP_QSTR_SCK), MP_ROM_PTR(&pin_GPIO36) },
2626
{ MP_ROM_QSTR(MP_QSTR_MISO), MP_ROM_PTR(&pin_GPIO37) },
27-
{ MP_ROM_QSTR(MP_QSTR_TFT_BACKLIGHT), MP_ROM_PTR(&pin_GPIO41) },
28-
{ MP_ROM_QSTR(MP_QSTR_TFT_DC), MP_ROM_PTR(&pin_GPIO40) },
29-
{ MP_ROM_QSTR(MP_QSTR_TFT_CS), MP_ROM_PTR(&pin_GPIO39) },
3027
{ MP_ROM_QSTR(MP_QSTR_TFT_RESET), MP_ROM_PTR(&pin_GPIO38) },
28+
{ MP_ROM_QSTR(MP_QSTR_TFT_CS), MP_ROM_PTR(&pin_GPIO39) },
29+
{ MP_ROM_QSTR(MP_QSTR_TFT_DC), MP_ROM_PTR(&pin_GPIO40) },
3130

32-
{ MP_ROM_QSTR(MP_QSTR_CARD_CS), MP_ROM_PTR(&pin_GPIO2) },
31+
{ MP_ROM_QSTR(MP_QSTR_CARD_CS), MP_ROM_PTR(&pin_GPIO48) },
3332

3433
{ MP_ROM_QSTR(MP_QSTR_IRQ), MP_ROM_PTR(&pin_GPIO3) },
3534

36-
{ MP_ROM_QSTR(MP_QSTR_NEOPIXEL), MP_ROM_PTR(&pin_GPIO21) },
35+
{ MP_ROM_QSTR(MP_QSTR_NEOPIXEL), MP_ROM_PTR(&pin_GPIO1) },
3736

38-
{ MP_ROM_QSTR(MP_QSTR_SPEAKER), MP_ROM_PTR(&pin_GPIO45) },
37+
{ MP_ROM_QSTR(MP_QSTR_SPEAKER), MP_ROM_PTR(&pin_GPIO41) },
3938

4039
{ MP_ROM_QSTR(MP_QSTR_BUTTON), MP_ROM_PTR(&pin_GPIO0) },
41-
{ MP_ROM_QSTR(MP_QSTR_LED), MP_ROM_PTR(&pin_GPIO1) },
40+
41+
{ MP_ROM_QSTR(MP_QSTR_BATTERY_MONITOR), MP_ROM_PTR(&pin_GPIO4) },
4242

4343
{ MP_ROM_QSTR(MP_QSTR_A0), MP_ROM_PTR(&pin_GPIO17) },
4444
{ MP_ROM_QSTR(MP_QSTR_A1), MP_ROM_PTR(&pin_GPIO18) },

0 commit comments

Comments
 (0)