I need to create 88 separate buttons, each triggering essentially the same function with a different value. It seems strange that the process for creating each means manually "adding" a new function, the typing in the name (no paste option) then pasting in the code and editing the variable. This is the only means to do it since there's no way to duplicate a function. And if I write them as individual .js files and import them, they aren't available to trigger with a button.
Just seems like I am missing something obvious??
FYI this is the basic function I am using.
I wonder if I can use the same function for all 88 buttons, but associate the pin "value" of each button's "instance" (if that makes sense)... perhaps I can pass the buttons ID or something. Thoughts?