Skip to content
Snippets Groups Projects
Configuration.h 1.13 KiB
Newer Older
13035516's avatar
13035516 committed
/*****************************************************************************************************
 * PIN LAYOUT
 * This file is used by other classes to define the pins used for the hardware.
 *****************************************************************************************************/
#ifndef CONFIGURATION_H
#define CONFIGURATION_H

#include <Arduino.h>

/* Runtime Configuration */
#define DELAY               0

/* Debug Options */
#define DEBUG               0

/* Serial Options */
#define BAUDRATE            115200
#define PING                '1'

/* =================================== */
/* Pin layout */
/* =================================== */
/* Motor Pins */
#define VIBRATION_PIN      28

/* Potentiometer Pins */
#define POT0_PIN           A3

/* LED Pins */
#define LED_BUILTIN        13

Raymond Chia's avatar
Raymond Chia committed
/* SWITCH Pins */
#define SWITCH_PIN1        30
#define SWITCH_PIN2        32
#define SWITCH_PIN3        34

13035516's avatar
13035516 committed
/* =================================== */
/* Resolution */
/* =================================== */
#define ADC_RES             1024

/* Buffer len */
#define DEFAULT_BUFFER_LEN  2560
#define COMBINATION_LEN     3

#endif