ZotBins Core
Loading...
Searching...
No Matches
cameraTask.hpp
Go to the documentation of this file.
1
8
9#ifndef CAMERA_TASK_HPP
10#define CAMERA_TASK_HPP
11
12#include "driver/gpio.h"
13#include "freertos/FreeRTOS.h"
14#include "freertos/queue.h"
15#include "freertos/semphr.h"
16#include "freertos/task.h"
17#include "task.hpp"
18
19namespace Zotbins
20{
25 class CameraTask : public Task
26 {
27 public:
33 explicit CameraTask(QueueHandle_t &messageQueue);
34
39 void start() override;
40
41 private:
48 static void taskFunction(void *task);
49
55 void setup();
56
62 void loop();
63
68 QueueHandle_t &mMessageQueue;
69 // gpio_num_t DETECT_PIN = GPIO_NUM_16;
70 };
71}
72
73#endif
void start() override
Start execution of Camera Task.
Definition cameraTask.cpp:183
CameraTask(QueueHandle_t &messageQueue)
Construct a new Camera Task object.
Definition cameraTask.cpp:178
Task(const char *name, const int priority, const uint32_t stackSize)
Construct a new Task object. Parameters are needed for FreeRTOS.
Definition task.hpp:31
Header file for Task class.