Controlp5 - Multiple buttons that use one function

I’m not sure how that relates to my problem, please elaborate.