@@ -16,6 +16,7 @@ If you are not familiar with building a custom firmware, you can go to the [rele
1616from camera import Camera, GrabMode, PixelFormat, FrameSize, GainCeiling
1717
1818# Camera construction and initialization
19+ # These pins are just examples and if you use them just like that will get a watchdog error. Adapt them to your board!
1920camera = Camera(
2021 data_pins = [1 ,2 ,3 ,4 ,5 ,6 ,7 ,8 ],
2122 vsync_pin = 9 ,
@@ -87,12 +88,12 @@ Example for Xiao sense:
8788# define MICROPY_CAMERA_PIN_XCLK (10)
8889# define MICROPY_CAMERA_PIN_PWDN (-1)
8990# define MICROPY_CAMERA_PIN_RESET (-1)
90- # define MICROPY_CAMERA_PIN_SIOD (40)
91- # define MICROPY_CAMERA_PIN_SIOC (39)
92- # define MICROPY_CAMERA_XCLK_FREQ (20000000)
93- # define MICROPY_CAMERA_FB_COUNT (2)
94- # define MICROPY_CAMERA_JPEG_QUALITY (10)
95- # define MICROPY_CAMERA_GRAB_MODE (1)
91+ # define MICROPY_CAMERA_PIN_SIOD (40) // SDA
92+ # define MICROPY_CAMERA_PIN_SIOC (39) // SCL
93+ # define MICROPY_CAMERA_XCLK_FREQ (20000000) // Frequencies are normally either 10 MHz or 20 MHz
94+ # define MICROPY_CAMERA_FB_COUNT (2) // Usually the value is between 1 (slow) and 2 (fast, but more load on CPU)
95+ # define MICROPY_CAMERA_JPEG_QUALITY (10) // Quality of JPEG output. 0-63 lower means higher quality. Definition will change in the future
96+ # define MICROPY_CAMERA_GRAB_MODE (1) // 0=WHEN_EMPTY (might have old data, but less resources), 1=LATEST (best, but more resources)
9697
9798```
9899
0 commit comments