Rotary encoder to modify value

Good day everyone :grinning_face:

I’m installing a blink marine power track CAN keypad to work with ADU, someone has kindly sent me a comprehensive project file to work with but I’m trying to figure out using the rotary encoder to manipulate a value.

So rotary has direction on 1 bit and tick counter on2 bytes, this is all received ok but I need to create a value eg, 0-255, traction control level, and modify the value with direction and count.

Hope that makes sense

We ended up using a switch with 8 states, the encoder triggers a function which changes the state of the switch up or down.