first commit
This commit is contained in:
24
include/labs/Lab2_1.h
Normal file
24
include/labs/Lab2_1.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef LAB2_1_H
|
||||
#define LAB2_1_H
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <Arduino_FreeRTOS.h>
|
||||
#include "drivers/LEDController.h"
|
||||
#include "drivers/ButtonController.h"
|
||||
#include "drivers/LCDController.h"
|
||||
|
||||
#define BUTTON_TOGGLE_PIN 13
|
||||
#define BUTTON_INCREMENT_PIN 11
|
||||
#define BUTTON_DECREMENT_PIN 12
|
||||
#define LED_PIN 22
|
||||
#define LED_BLINK_PIN 24
|
||||
#define RS 31
|
||||
#define EN 33
|
||||
#define D4 35
|
||||
#define D5 37
|
||||
#define D6 39
|
||||
#define D7 41
|
||||
|
||||
void Lab2_1Task(void* pv);
|
||||
|
||||
#endif
|
||||
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
|
||||
33
include/labs/Lab3_1.h
Normal file
33
include/labs/Lab3_1.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#ifndef LAB3_1_H
|
||||
#define LAB3_1_H
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <Arduino_FreeRTOS.h>
|
||||
#include "drivers/LCDController.h"
|
||||
#include "drivers/JoystickController.h"
|
||||
#include "drivers/DHTController.h"
|
||||
#include "drivers/AccelerometerController.h"
|
||||
#include "drivers/PhotoresistorController.h"
|
||||
#include "drivers/DistanceSensorController.h"
|
||||
|
||||
#define VRX A0
|
||||
#define VRY A1
|
||||
#define SW 15
|
||||
#define RS 31
|
||||
#define EN 33
|
||||
#define D4 35
|
||||
#define D5 37
|
||||
#define D6 39
|
||||
#define D7 41
|
||||
#define DHT_PIN 4
|
||||
#define PHOTORESISTOR_PIN A3
|
||||
#define TRIG_PIN 5
|
||||
#define ECHO_PIN 6
|
||||
|
||||
void Lab3_1Task(void* pv);
|
||||
void DHTTask(void* pv);
|
||||
void AccelerometerTask(void* pv);
|
||||
void PhotoresistorTask(void*pv);
|
||||
void DistanceTask(void* pv);
|
||||
|
||||
#endif
|
||||
19
include/labs/Lab3_2.h
Normal file
19
include/labs/Lab3_2.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#ifndef LAB3_2_H
|
||||
#define LAB3_2_H
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <Arduino_FreeRTOS.h>
|
||||
#include "drivers/LCDController.h"
|
||||
#include "drivers/ThermistorController.h"
|
||||
|
||||
#define THERMISTOR_PIN A2
|
||||
#define RS 31
|
||||
#define EN 33
|
||||
#define D4 35
|
||||
#define D5 37
|
||||
#define D6 39
|
||||
#define D7 41
|
||||
|
||||
void Lab3_2Task(void* pv);
|
||||
|
||||
#endif
|
||||
23
include/labs/Lab4_1.h
Normal file
23
include/labs/Lab4_1.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef LAB4_1_H
|
||||
#define LAB4_1_H
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <Arduino_FreeRTOS.h>
|
||||
#include "drivers/LCDController.h"
|
||||
#include "drivers/JoystickController.h"
|
||||
#include "drivers/RelayController.h"
|
||||
|
||||
#define VRX A0
|
||||
#define VRY A1
|
||||
#define SW 15
|
||||
#define RS 31
|
||||
#define EN 33
|
||||
#define D4 35
|
||||
#define D5 37
|
||||
#define D6 39
|
||||
#define D7 41
|
||||
#define RELAY_PIN 14
|
||||
|
||||
void Lab4_1Task(void* pv);
|
||||
|
||||
#endif
|
||||
26
include/labs/Lab4_2.h
Normal file
26
include/labs/Lab4_2.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef LAB4_2_H
|
||||
#define LAB4_2_H
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <Arduino_FreeRTOS.h>
|
||||
#include "drivers/LCDController.h"
|
||||
#include "drivers/JoystickController.h"
|
||||
#include "drivers/RelayController.h"
|
||||
#include "drivers/MotorController.h"
|
||||
|
||||
#define MOTOR_PIN_IA 2
|
||||
#define MOTOR_PIN_IB 3
|
||||
#define RELAY_PIN 14
|
||||
#define VRX A0
|
||||
#define VRY A1
|
||||
#define SW 15
|
||||
#define RS 31
|
||||
#define EN 33
|
||||
#define D4 35
|
||||
#define D5 37
|
||||
#define D6 39
|
||||
#define D7 41
|
||||
|
||||
void Lab4_2Task(void* pv);
|
||||
|
||||
#endif
|
||||
21
include/labs/LabSelector.h
Normal file
21
include/labs/LabSelector.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef LABSELECTOR_H
|
||||
#define LABSELECTOR_H
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <Arduino_FreeRTOS.h>
|
||||
#include "drivers/LCDController.h"
|
||||
#include "drivers/JoystickController.h"
|
||||
#include "Lab2_1.h"
|
||||
#include "Lab2_2.h"
|
||||
#include "Lab3_1.h"
|
||||
#include "Lab3_2.h"
|
||||
#include "Lab4_1.h"
|
||||
#include "Lab4_2.h"
|
||||
|
||||
#define VRX A0
|
||||
#define VRY A1
|
||||
#define SW 15
|
||||
|
||||
void LabSelectorTask(void* pv);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user