This is the firmware for the ffkb:

Note that this is pre-configured for 3 rotary encoders, though the ffkb supports an OLED or pimoroni trackball in the center. You may need to adjust the firmware to support them. If you enable another feature, be sure to disable the encoder_3 since it shares pins with the other features.

For an example of firmware that supports an OLED, see: