Flickering Potentiometer

ciabio:
AnalogMultiplex multiplexers[] = {
{A0, { 2, 3, 4, 5 } },
{A1, { 2, 3, 4, 5 } },
{A2, { 2, 3, 4, 5 } },
{A3, { 2, 3, 4, 5 } },
{A4, { 2, 3, 4, 5 } },
{A5, { 2, 3, 4, 5 } },
{A6, { 2, 3, 4, 5 } },
{A7, { 2, 3, 4, 5 } },
{A8, { 2, 3, 4, 5 } },
{A9, { 2, 3, 4, 5 } },
{A10, { 2, 3, 4, 5 } },
};

...snip.....

i need this filter on all multiplexers (potentiometers) and im realy don't know how to do it ,

Okay you only need to filter the pins and know what pot # (mux addr/index) the data is for.

You have how many buttons times how much RAM to filter each? A pin number and 4 other args? Add mux channel?