The SimVimX plugin has “embedded FMS/CDU” configuration for SimVimX Matrix. You won’t need to assign all those 140 buttons one-by-one, you’ll just need to select one device (currently Boeing CDU or Airbus MCDU are available) in the configurator.
Here are the matrix wiring diagram for two Boeing style CDUs. The 16 blue columns are the multiplexer inputs and the 12 green rows are the digital pins on Arduino Nano/Uno board:
Connection diagram:
Airbus style MCDU matrix wiring is the same, except for 3 additional buttons. Note the yellow line from the Y12 column and green branch from the D6 row and additional “brightness” buttons on the Y15 column:
The standalone SimVimPanel MCDU module for Raspberry or any or mini-PC is available and can be downloaded here.