Added ICM, knob CCs

This commit is contained in:
Brian Hrebec 2023-08-30 23:54:06 -05:00
parent e757ebc885
commit 00cdfc08e0
7 changed files with 125 additions and 46 deletions

View file

@ -16,6 +16,11 @@ extern WS2812Serial ledStrip;
extern Adafruit_Sensor *accelSensor;
extern Adafruit_ICM20948 icmSensor;
struct icm_result_t {
float tilt;
float roll;
};
void initHardware();
void updateFilters(preset_t &preset);
bool checkButtonState(uint8_t mask); // return true if the given buttons are pressed
@ -28,6 +33,7 @@ uint16_t utilTouched();
int readPressure();
int readAltPressure();
int readSpikePressure();
icm_result_t readICM();
// xEVI hardware setup