changed most declarations typedefs. the ones that are not changed yet need to be reviewed in detail

This commit is contained in:
Oleksiy
2025-03-15 11:44:06 +02:00
parent 4b30e2ee9f
commit 9136a494e5
4 changed files with 76 additions and 76 deletions

View File

@ -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