File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1204,7 +1204,7 @@ esp_err_t camera_init(const camera_config_t* config)
1204
1204
s_state -> in_bytes_per_pixel = 2 ; // camera sends RGB565
1205
1205
s_state -> fb_bytes_per_pixel = 3 ; // frame buffer stores RGB888
1206
1206
} else if (pix_format == PIXFORMAT_JPEG ) {
1207
- if (s_state -> sensor .id .PID != OV2640_PID && s_state -> sensor .id .PID != OV3660_PID && s_state -> sensor .id .PID != OV5640_PID ) {
1207
+ if (s_state -> sensor .id .PID != OV2640_PID && s_state -> sensor .id .PID != OV3660_PID && s_state -> sensor .id .PID != OV5640_PID && s_state -> sensor . id . PID != NT99141_PID ) {
1208
1208
ESP_LOGE (TAG , "JPEG format is only supported for ov2640, ov3660 and ov5640" );
1209
1209
err = ESP_ERR_NOT_SUPPORTED ;
1210
1210
goto fail ;
@@ -1359,6 +1359,8 @@ esp_err_t esp_camera_init(const camera_config_t* config)
1359
1359
ESP_LOGI (TAG , "Detected OV3660 camera" );
1360
1360
} else if (camera_model == CAMERA_OV5640 ) {
1361
1361
ESP_LOGI (TAG , "Detected OV5640 camera" );
1362
+ } else if (camera_model == CAMERA_NT99141 ) {
1363
+ ESP_LOGI (TAG , "Detected NT99141 camera" );
1362
1364
} else {
1363
1365
ESP_LOGI (TAG , "Camera not supported" );
1364
1366
err = ESP_ERR_CAMERA_NOT_SUPPORTED ;
Original file line number Diff line number Diff line change 11
11
#include <stdint.h>
12
12
#include <stdbool.h>
13
13
14
+ #define NT99141_PID (0x14)
14
15
#define OV9650_PID (0x96)
15
16
#define OV7725_PID (0x77)
16
17
#define OV2640_PID (0x26)
You can’t perform that action at this time.
0 commit comments