-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutilities.h
38 lines (30 loc) · 854 Bytes
/
utilities.h
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
32
33
34
35
36
37
38
/**************************************************************************************************
Filename: utilities.h
Description: This header file sets up various functionalities of the controller
Author: Alexandros Iliadis
Project: SamplerINO
Date: May 2024
**************************************************************************************************/
#ifndef UTILITIES_H
#define UTILITIES_H
// Include Libraries
#include <Arduino.h>
#include "sensors.h"
#include "midi.h"
// Define Macros
#define DEBUG 0
#define RED_PIN 3
#define GREEN_PIN 5
#define COMMON_ANODE 1
#define INTENSITY 25
#define DURATION 50
// Declare Variables
extern unsigned long timer;
// Declare Functions
void setupSerial();
void setupLED();
void controlLED();
void changeColor(byte red,byte green);
byte getAnalogValue(byte color);
void registerNotes();
#endif