Switch buttons

I need to connect multiple switch buttons to daisyseed to activate toggles in PlugData. How can I write the appropriate JSON file? I’m also wondering which daisy pins are best to connect the switches to (one pin of each button is connected to ground and the other to both VCC, with a 10kΩ resistor, and ADC, if I’m not mistaken).

I recommend referencing Pod’s json file: json2daisy/src/json2daisy/resources/pod.json at main · electro-smith/json2daisy · GitHub

And it’s good to use GPIO pins that are not ADC pins for switches so that you are not using them up with components that are not outputting analog voltage.

If you have a lot of switches and buttons you can look at the Field’s json file: hvcc/hvcc/generators/c2daisy/json2daisy/resources/field.json at develop · Wasted-Audio/hvcc · GitHub

It uses a CD4021 shift register to get 8 inputs using 3 ports.