esp-who/examples/motion_detection/lcd/main/app_main.cpp

17 lines
519 B
C++
Raw Normal View History

#include "who_camera.h"
#include "who_motion_detection.hpp"
#include "who_lcd.h"
static QueueHandle_t xQueueAIFrame = NULL;
static QueueHandle_t xQueueLCDFrame = NULL;
extern "C" void app_main()
{
xQueueAIFrame = xQueueCreate(2, sizeof(camera_fb_t *));
xQueueLCDFrame = xQueueCreate(2, sizeof(camera_fb_t *));
register_camera(PIXFORMAT_RGB565, FRAMESIZE_240X240, 2, xQueueAIFrame);
register_motion_detection(xQueueAIFrame, NULL, NULL, xQueueLCDFrame);
register_lcd(xQueueLCDFrame, NULL, true);
}