changed most declarations typedefs. the ones that are not changed yet need to be reviewed in detail
This commit is contained in:
@ -61,13 +61,13 @@ void checkInputs() {
|
||||
//encoder
|
||||
encoder.tick();
|
||||
int encPosition = encoder.getPosition();
|
||||
int encDirection = (int)(encoder.getDirection());
|
||||
uint8_t encDirection = (int)(encoder.getDirection());
|
||||
if (encPositionOld != encPosition) {
|
||||
int change = encPositionOld - encPosition;
|
||||
uint8_t change = encPositionOld - encPosition;
|
||||
if (reverseEnc) {
|
||||
change = change * -1;
|
||||
}
|
||||
unsigned long ms = encoder.getMillisBetweenRotations();
|
||||
uint32_t ms = encoder.getMillisBetweenRotations();
|
||||
/*if (encDirectionOld == encDirection && ms < 20) { //encoder acceleration
|
||||
change = change * 5;
|
||||
} else if (encDirectionOld == encDirection && ms < 80) {
|
||||
@ -77,7 +77,7 @@ void checkInputs() {
|
||||
}
|
||||
encDirectionOld = encDirection;
|
||||
if (displayScreen == 0) {
|
||||
byte channelCV;
|
||||
uint8_t channelCV;
|
||||
if (!insideTab && !shiftBtnPushed) { //Change tab
|
||||
displayTab = displayTab + change;
|
||||
if (displayTab > 100) { //to address "negative" numbers
|
||||
|
||||
Reference in New Issue
Block a user