Hello there! Don’t know if this is the right section to talk about it but I’m having the same problem, I’m working with Plug Data tho.
I basically have ADC_12 (pin D8) unused on my patchsm and I’d like to use it to flash a led (my idea is to convert it into a GateOut since I’m also using the already available gate outputs for leds).
So, I replaced ADC_12 section of my json file with what follows (just copied one of the gate_out definitions and changed name):
"gate_out_3": {
"component": "GateOut",
"pin": "D8",
"display": "",
"default": true
},
And added "gateout3": "gate_out_3"
, to the “aliases” section.
I get an “Export Successful” message from the compiler but with the following error as last line (also, patchsm is silent, so not being flashed):
error: 'class daisy::patch_sm::DaisyPatchSM' has no member named 'gate_out_3'; did you mean 'gate_out_1'?
211 | dsy_gpio_write(&hardware.som.gate_out_3, output_data[2]);
| ^~~~~~~~~~
| gate_out_1
I’ve had a look at the GateOut section of component_defs_patchsm.json but my line looks totally different from what reported by @teddexter and it looks like this:
“map_init”: “{name}.pin = daisy::patch_sm::DaisyPatchSM::{pin};\n\t\t{name}.mode = {mode};\n\t\t{name}.pull = {pull};\n\t\tdsy_gpio_init(&{name});”,
Do you know how to solve this? Am I missing something?