Skip to content

Commit 3ba385f

Browse files
authored
Merge pull request #6794 from jepler/esp32-camera-error-checking
Esp32 camera error checking
2 parents b68bb47 + 2c6f57b commit 3ba385f

File tree

24 files changed

+42
-6
lines changed

24 files changed

+42
-6
lines changed

locale/circuitpython.pot

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -398,12 +398,10 @@ msgstr ""
398398
msgid "All CAN peripherals are in use"
399399
msgstr ""
400400

401-
#: ports/espressif/common-hal/busio/I2C.c ports/nrf/common-hal/busio/I2C.c
402-
msgid "All I2C peripherals are in use"
403-
msgstr ""
404-
401+
#: ports/espressif/common-hal/busio/I2C.c
405402
#: ports/espressif/common-hal/i2ctarget/I2CTarget.c
406-
msgid "All I2C targets are in use"
403+
#: ports/nrf/common-hal/busio/I2C.c
404+
msgid "All I2C peripherals are in use"
407405
msgstr ""
408406

409407
#: ports/espressif/common-hal/countio/Counter.c
@@ -1061,6 +1059,7 @@ msgid "I2C init error"
10611059
msgstr ""
10621060

10631061
#: ports/raspberrypi/common-hal/busio/I2C.c
1062+
#: ports/raspberrypi/common-hal/i2ctarget/I2CTarget.c
10641063
msgid "I2C peripheral in use"
10651064
msgstr ""
10661065

@@ -1592,6 +1591,7 @@ msgid "Only one TouchAlarm can be set in deep sleep."
15921591
msgstr ""
15931592

15941593
#: ports/espressif/common-hal/i2ctarget/I2CTarget.c
1594+
#: ports/raspberrypi/common-hal/i2ctarget/I2CTarget.c
15951595
msgid "Only one address is allowed"
15961596
msgstr ""
15971597

@@ -2873,6 +2873,12 @@ msgstr ""
28732873
msgid "error = 0x%08lX"
28742874
msgstr ""
28752875

2876+
#: ports/espressif/common-hal/esp32_camera/Camera.c
2877+
msgid ""
2878+
"esp32_camera.Camera requires reserved PSRAM to be configured. See the "
2879+
"documentation for instructions."
2880+
msgstr ""
2881+
28762882
#: py/runtime.c
28772883
msgid "exceptions must derive from BaseException"
28782884
msgstr ""

ports/espressif/bindings/esp32_camera/Camera.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
//| """
6464
//| Configure and initialize a camera with the given properties
6565
//|
66-
//| This driver requires that the ``CIRCUITPY_RESERVED_PSRAM`` in ``/.env`` be large enough to hold the camera frambuffer(s). Generally, boards with built-in cameras will have a default setting that is large enough. If the constructor raises a MemoryError, this probably indicates the setting is too small and should be increased.
66+
//| This driver requires that the ``CIRCUITPY_RESERVED_PSRAM`` in ``/.env`` be large enough to hold the camera frambuffer(s). Generally, boards with built-in cameras will have a default setting that is large enough. If the constructor raises a MemoryError or an IDFError, this probably indicates the setting is too small and should be increased.
6767
//|
6868
//|
6969
//| .. important::

ports/espressif/boards/adafruit_feather_esp32s2_tftback_nopsram/mpconfigboard.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ CIRCUITPY_ESP_FLASH_SIZE = 4MB
1919
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_Requests
2020
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_NeoPixel
2121
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_Register
22+
CIRCUITPY_ESP32_CAMERA = 0

ports/espressif/boards/adafruit_feather_esp32s3_nopsram/mpconfigboard.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ CFLAGS += -DCFG_TUD_TASK_QUEUE_SZ=32
1515
CIRCUITPY_ESP_FLASH_MODE = qio
1616
CIRCUITPY_ESP_FLASH_FREQ = 80m
1717
CIRCUITPY_ESP_FLASH_SIZE = 8MB
18+
CIRCUITPY_ESP32_CAMERA = 0

ports/espressif/boards/adafruit_feather_huzzah32/mpconfigboard.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ CFLAGS += -DCFG_TUD_TASK_QUEUE_SZ=32
1313
CIRCUITPY_ESP_FLASH_MODE = dio
1414
CIRCUITPY_ESP_FLASH_FREQ = 40m
1515
CIRCUITPY_ESP_FLASH_SIZE = 4MB
16+
CIRCUITPY_ESP32_CAMERA = 0

ports/espressif/boards/adafruit_qtpy_esp32s3_nopsram/mpconfigboard.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ CIRCUITPY_ESP_FLASH_SIZE = 8MB
2020
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_Requests
2121
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_NeoPixel
2222
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_Register
23+
CIRCUITPY_ESP32_CAMERA = 0

ports/espressif/boards/electroniccats_bastwifi/mpconfigboard.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ CIRCUITPY_NEOPIXEL_WRITE = 0
1717
CIRCUITPY_ESP_FLASH_MODE = dio
1818
CIRCUITPY_ESP_FLASH_FREQ = 40m
1919
CIRCUITPY_ESP_FLASH_SIZE = 4MB
20+
CIRCUITPY_ESP32_CAMERA = 0

ports/espressif/boards/espressif_esp32s2_devkitc_1_n4/mpconfigboard.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ CFLAGS += -DCFG_TUD_TASK_QUEUE_SZ=32
1515
CIRCUITPY_ESP_FLASH_MODE = dio
1616
CIRCUITPY_ESP_FLASH_FREQ = 40m
1717
CIRCUITPY_ESP_FLASH_SIZE = 4MB
18+
CIRCUITPY_ESP32_CAMERA = 0

ports/espressif/boards/espressif_esp32s3_devkitc_1_n8/mpconfigboard.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ CFLAGS += -DCFG_TUD_TASK_QUEUE_SZ=32
1515
CIRCUITPY_ESP_FLASH_MODE = dio
1616
CIRCUITPY_ESP_FLASH_FREQ = 80m
1717
CIRCUITPY_ESP_FLASH_SIZE = 8MB
18+
CIRCUITPY_ESP32_CAMERA = 0

ports/espressif/boards/espressif_esp32s3_devkitm_1_n8/mpconfigboard.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ CFLAGS += -DCFG_TUD_TASK_QUEUE_SZ=32
1515
CIRCUITPY_ESP_FLASH_MODE = dio
1616
CIRCUITPY_ESP_FLASH_FREQ = 80m
1717
CIRCUITPY_ESP_FLASH_SIZE = 8MB
18+
CIRCUITPY_ESP32_CAMERA = 0

0 commit comments

Comments
 (0)