Taiko-Drum-Controller-Arduino/ESP32-S3-Analog/params.h

33 lines
836 B
C
Raw Normal View History

2024-05-27 23:00:52 +02:00
// Sample window length. Larger values reduce noise but add more latency.
#define SAMPLE_CACHE_LENGTH 64
2024-01-27 08:26:38 +01:00
// The maximum value of a hit (not the minumum value to trigger a heavy hit)
2024-01-29 09:57:22 +01:00
// To configure the light and heavy thresholds, do it in the game settings.
2024-01-27 08:26:38 +01:00
#define MAX_THRES 5000
2024-01-29 09:57:22 +01:00
// Input pins for each channel.
2024-01-27 08:26:38 +01:00
#define P1_L_DON_IN 4
#define P1_L_KAT_IN 5
#define P1_R_DON_IN 6
#define P1_R_KAT_IN 7
#define P2_L_DON_IN 8
#define P2_L_KAT_IN 1
#define P2_R_DON_IN 9
#define P2_R_KAT_IN 10
2024-01-29 09:57:22 +01:00
// Sensitivity adjustment potentiometer input pins.
2024-01-29 09:29:07 +01:00
#define P1_L_DON_SENS_IN 15
#define P1_L_KAT_SENS_IN 16
#define P1_R_DON_SENS_IN 17
#define P1_R_KAT_SENS_IN 18
2024-01-27 08:26:38 +01:00
2024-05-27 23:00:52 +02:00
// Controller axis value range
2024-01-27 08:26:38 +01:00
#define AXIS_RANGE 1023
2024-05-27 23:00:52 +02:00
// Number of input channels for each player
2024-01-27 08:26:38 +01:00
#define CHANNELS 4
#include <USB.h>
#include "joystick.h"
#include "cache.h"