lemariva / micropython-camera-driver

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

Can you update the tutorial to the latest versions of ESP-IDF and micropython? #96

Open kingmo888 opened 5 months ago

kingmo888 commented 5 months ago

When I tried to compile according to the tutorial, the compiler prompted that STATIC was unknown. After trying to change it to lowercase, although there were warnings, it was able to be edited, but ultimately the firmware still couldn't be used (camera module).

My ESP is ESP32-S3-WROOM-1+OV2640 (originally 5640, bought 2640 again)

kingmo888 commented 4 months ago

please

getznerh commented 3 months ago

Hi! Lemariva! You made a important work, thank you! I have compiled a new firmwareversion with esp-idf 5.2.2 and the actual Micropython version 1.24. You can do it as it is explained in readme.md. But you have to make small changes to modcamera.c

  1. change all STATIC to static
  2. change line about 180 //static mp_obj_t camera_init(mp_uint_t n_pos_args, const mp_obj_t pos_args, mp_map_t kw_args) { static mp_obj_t camera_init(size_t n_pos_args, const mp_obj_t pos_args, mp_map_t kw_args) {

now you can compile a new firmware as explained in readme.md Regards Hans

cnadler86 commented 1 month ago

Take the new API: https://github.com/cnadler86/micropython-camera-API. Usage is a little bit different, but you have more settings. This supports the new mp version. I will publish in short precompiled FW versions vir the esp generic boards.