You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
518 B

3 years ago
  1. #include "who_camera.h"
  2. #include "who_motion_detection.hpp"
  3. #include "who_lcd.h"
  4. static QueueHandle_t xQueueAIFrame = NULL;
  5. static QueueHandle_t xQueueLCDFrame = NULL;
  6. extern "C" void app_main()
  7. {
  8. xQueueAIFrame = xQueueCreate(2, sizeof(camera_fb_t *));
  9. xQueueLCDFrame = xQueueCreate(2, sizeof(camera_fb_t *));
  10. register_camera(PIXFORMAT_RGB565, FRAMESIZE_240X240, 2, xQueueAIFrame);
  11. register_motion_detection(xQueueAIFrame, NULL, NULL, xQueueLCDFrame);
  12. register_lcd(xQueueLCDFrame, NULL, true);
  13. }