New slider signals
This commit is contained in:
parent
4211a85562
commit
9f4634735b
6 changed files with 104 additions and 53 deletions
|
|
@ -27,7 +27,8 @@ bool checkButtonState(uint8_t mask); // return true if the given buttons are pre
|
|||
uint8_t buttonState(); // return true if the given buttons are pressed
|
||||
int readKnob(uint8_t n);
|
||||
int readTouchKey(uint8_t n);
|
||||
int readTouchUtil(uint8_t n);
|
||||
int readTouchRoller(uint8_t n);
|
||||
float readSlider(Slider id);
|
||||
uint16_t keysTouched();
|
||||
uint16_t utilTouched();
|
||||
int readPressure();
|
||||
|
|
@ -41,7 +42,8 @@ icm_result_t readICM();
|
|||
#define MainI2CBus Wire1
|
||||
#define AuxI2CBus Wire
|
||||
#define KeysI2CAddr 0x5A
|
||||
#define UtilI2CAddr 0x5B
|
||||
#define RollerI2CAddr 0x5B
|
||||
#define UtilI2CAddr 0x5C
|
||||
|
||||
// Digital pins for encoder buttons
|
||||
#define b1Pin 4
|
||||
|
|
@ -98,9 +100,17 @@ icm_result_t readICM();
|
|||
|
||||
// Additional pins
|
||||
#define bitePin 0
|
||||
#define extraPin 2
|
||||
#define pbUpPin 4
|
||||
#define pbDnPin 5
|
||||
#define leverPin 3
|
||||
#define barPin 7
|
||||
#define pbSliderPin1 11
|
||||
#define pbSliderPin2 10
|
||||
#define leverSliderPin1 9
|
||||
#define leverSliderPin2 8
|
||||
#define extraSliderPin1 2
|
||||
#define extraSliderPin2 3
|
||||
enum Slider : uint8_t {
|
||||
SLIDER_PITCH_BEND = 0,
|
||||
SLIDER_EXTRA = 1,
|
||||
SLIDER_LEVER = 2,
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue