-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtasks.h
More file actions
31 lines (25 loc) · 682 Bytes
/
Copy pathtasks.h
File metadata and controls
31 lines (25 loc) · 682 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef TASKS_H
#define TASKS_H
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <freertos/queue.h>
enum Command {
CMD_NONE = -1, // Special value for no command
CMD_SHOW_NEITHER = 0,
CMD_SHOW_RECYCLING = 1,
CMD_SHOW_RUBBISH = 2,
CMD_SHOW_COMPLETED = 3,
CMD_SHOW_LOADING = 4,
CMD_SHOW_ERROR_API = 5,
CMD_SHOW_ERROR_WIFI = 6,
CMD_SHOW_SETUP_MODE = 7,
CMD_SHOW_ERROR_OTHER = 8
};
extern bool isBin;
extern uint8_t Matrix_Data[8][8];
extern uint8_t RGB_Data1[64][3];
void animationTask(void* parameter);
void wifiTask(void* parameter);
void calendarTask(void* parameter);
extern QueueHandle_t commandQueue;
#endif