lemariva / micropython-camera-driver

add camera support to MicroPython
https://lemariva.com
Apache License 2.0
436 stars 93 forks source link

SPIRAM unused #23

Closed TecDroiD closed 2 years ago

TecDroiD commented 3 years ago

Hi again, i just found out that SPI RAM on ESP32-Cam is unused. Is it possible to implement this? i'll try on my own but i'm not really convinced to have enough insight into mp :-( Here is a modified image (from 2018) with modifications that have been done..

lemariva commented 2 years ago

Can you point the modifications, or send me a PR? The flags:

CONFIG_ESP32_SPIRAM_SUPPORT=y
CONFIG_SPIRAM_CACHE_WORKAROUND=y
CONFIG_SPIRAM_IGNORE_NOTFOUND=y
CONFIG_SPIRAM_USE_MALLOC=y

which are related with the PSRAM are set to y (yes) - check the sdkconfig.esp32cam file.

lemariva commented 2 years ago

Not anymore. You were right. But since PR 8219 the camera can share the PSRAM with MicroPython. Check out the latest firmware and the camera option fb_location=camera.PSRAM. With that option, you can take photos with higher resolution.

TecDroiD commented 2 years ago

thank you, i'll try