Fixes; additional input filtering

This commit is contained in:
Brian Hrebec 2023-08-30 19:49:22 -05:00
parent 209959e2de
commit 7740c09375
11 changed files with 802 additions and 513 deletions

View file

@ -7,6 +7,7 @@
#include <WS2812Serial.h>
#include <Adafruit_ICM20948.h>
#include <stdint.h>
#include "settings.h"
// Hardware sensor definitions
// TODO: remove these
@ -16,6 +17,7 @@ extern Adafruit_Sensor *accelSensor;
extern Adafruit_ICM20948 icmSensor;
void initHardware();
void updateFilters(preset_t &preset);
bool checkButtonState(uint8_t mask); // return true if the given buttons are pressed
uint8_t buttonState(); // return true if the given buttons are pressed
int readKnob(uint8_t n);
@ -25,6 +27,7 @@ uint16_t keysTouched();
uint16_t utilTouched();
int readPressure();
int readAltPressure();
int readSpikePressure();
// xEVI hardware setup
@ -92,6 +95,6 @@ int readAltPressure();
#define extraPin 2
#define pbUpPin 4
#define pbDnPin 5
#define vibratoPin 3
#define leverPin 3
#endif