first commit
This commit is contained in:
33
include/labs/Lab2_2.h
Normal file
33
include/labs/Lab2_2.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#ifndef LAB2_2_H
|
||||
#define LAB2_2_H
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <Arduino_FreeRTOS.h>
|
||||
#include <semphr.h>
|
||||
#include <queue.h>
|
||||
#include "drivers/LEDController.h"
|
||||
#include "drivers/ButtonController.h"
|
||||
#include "drivers/LCDController.h"
|
||||
|
||||
#define LED_BUTTON_PIN 28
|
||||
#define LED_BLINK_PIN 24
|
||||
#define BUTTON_PIN 13
|
||||
#define RS 31
|
||||
#define EN 33
|
||||
#define D4 35
|
||||
#define D5 37
|
||||
#define D6 39
|
||||
#define D7 41
|
||||
|
||||
typedef struct {
|
||||
ButtonController* button;
|
||||
LEDController* led;
|
||||
LEDController* blinkLed;
|
||||
LCDController* lcd;
|
||||
SemaphoreHandle_t buttonSemaphore;
|
||||
QueueHandle_t dataQueue;
|
||||
} TaskParameters;
|
||||
|
||||
void Lab2_2Task(void* pv);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user