Just a additional Note....
I remember to a other guy that reqested this in a personal Email contact maby 1-2 Years ago. ( Not find the mail again after a reinstall of my PC

)
The problem was ( if i remember right) that Mobiflight can READ a "part" of a byte ( With Bitmasking) BUT Mobiflight can NOT WRITE a "part" of a Byte via Bitmask.
So you have a Problem here i think.
Offset is BCD coded.... Means... Its a 2 Byte Offset including 4 Numbers . So its split in 4 Nibbles (Halfbytes) ....
Bit 0-3 of Byte 1 (Offset 0354) is ONE Number .... Bit 4-7 of Byte 1 ( already Offset 0354) is another Number .
Same on next Byte ( Offset 0355 ) Bit 0-3 is a Number and bit 4-7 is the last Number.
To SET a Number you need to Read it first.... Thats Possible. You will mark for example the Bits 0-3 in BCD Mode and output should be the correct Number of your XPDR Frequency.
Now the logical next step would be a formula (Example increase rightturn of encoder) is $+1 !
Or to protect a Overflow behind 7 ( XPDR goes form 0-7) you need : if($=7,0,$+1)
but NOW the PROBLEM:
If i remember right it is NOT Possible to Write a bitmask Input to a decimal value only 1/0 is possible.... AND it is not possible to write multiple bits individual....
So 4 Bits marked and a write of "1" will write all bits same time " 1 1 1 1 " .... A Write with "0" is do the same "0 0 0 0 "
(Check this for more information :
https://www.mobiflight.com/forum/message/4824.html German topic.... Use Translator if needed)
Summary....
I Think for THIS You need a difficult technic.... Maby with a "verry" detailed IF condition ( Lots of ELSE IF) it is possible.... Maby Modulo%% is needed too.
A bit easyer should be to set 2 Numbers together.... So your encoder turn for example the Left two diggits ....
For Example XPDR 12xx ... A Rightturn of encoder will set 13xx ..... On 17xx the next turn will set 20xx and so on.
This should be possible.... Whatever its not comfortable and also verry difficult to do
*****
A already would recommend to think about joystick system !