first commit

This commit is contained in:
lumijiez
2025-04-28 18:30:29 +03:00
commit a4b88564a4
45 changed files with 2188 additions and 0 deletions

33
include/labs/Lab2_2.h Normal file
View 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