🎨 Change the initialization sequence

pull/190/head
yuanjiong 2021-11-26 20:07:03 +08:00
parent 4d5669a1e7
commit d30a0e0610
2 changed files with 2 additions and 2 deletions

View File

@ -20,8 +20,8 @@ extern "C" void app_main()
xQueueKeyState = xQueueCreate(1, sizeof(int *)); xQueueKeyState = xQueueCreate(1, sizeof(int *));
xQueueEventLogic = xQueueCreate(1, sizeof(int *)); xQueueEventLogic = xQueueCreate(1, sizeof(int *));
register_camera(PIXFORMAT_RGB565, FRAMESIZE_240X240, 2, xQueueAIFrame);
register_button(GPIO_BOOT, xQueueKeyState); register_button(GPIO_BOOT, xQueueKeyState);
register_camera(PIXFORMAT_RGB565, FRAMESIZE_240X240, 2, xQueueAIFrame);
// register_adc_button(buttons, 4, xQueueKeyState); // register_adc_button(buttons, 4, xQueueKeyState);
register_event(xQueueKeyState, xQueueEventLogic); register_event(xQueueKeyState, xQueueEventLogic);
register_human_face_recognition(xQueueAIFrame, xQueueEventLogic, NULL, xQueueLCDFrame, false); register_human_face_recognition(xQueueAIFrame, xQueueEventLogic, NULL, xQueueLCDFrame, false);

View File

@ -17,8 +17,8 @@ extern "C" void app_main()
xQueueKeyState = xQueueCreate(1, sizeof(int *)); xQueueKeyState = xQueueCreate(1, sizeof(int *));
xQueueEventLogic = xQueueCreate(1, sizeof(int *)); xQueueEventLogic = xQueueCreate(1, sizeof(int *));
register_camera(PIXFORMAT_RGB565, FRAMESIZE_240X240, 2, xQueueAIFrame);
register_button(GPIO_BOOT, xQueueKeyState); register_button(GPIO_BOOT, xQueueKeyState);
register_camera(PIXFORMAT_RGB565, FRAMESIZE_240X240, 2, xQueueAIFrame);
register_event(xQueueKeyState, xQueueEventLogic); register_event(xQueueKeyState, xQueueEventLogic);
register_human_face_recognition(xQueueAIFrame, xQueueEventLogic, NULL, NULL, true); register_human_face_recognition(xQueueAIFrame, xQueueEventLogic, NULL, NULL, true);