Hi there,
you may try this snippet for lc2
void onUhfFreqDispChange(char* newValue) {
lc2.setChar(0,0,newValue[0],false); // digit 1
lc2.setChar(0,1,newValue[1],false); // digit 2
lc2.setChar(0,2,newValue[2],true); // digit 3 with dot
lc2.setChar(0,3,newValue[4],false); // digit 4
lc2.setChar(0,4,newValue[5],false); // digit 5
lc2.setChar(0,5,newValue[6],false); // digit 6
}
DcsBios::StringBuffer<7> uhfFreqDispBuffer(0x45b2, onUhfFreqDispChange);
Depending on the order of your LEDs, you may swap the digits (newValue[0] to [6]).
Element 4 of the string (newValue[3]) is a dot and not a number, additionally the "true" on digit 3 than may be shifted to digit 4.
As the radio display code seems to be similar to that of the A-10, you also may adapt that of my OLED displays.
For the F16 you use the "UHF Manual Frequency Display" and "UHF CHAN Display" code snippets.
Regards, Vinc