Pd Export -- Pin mapping to controls not working (solved)

Hey all!

I have been working on a daisy project with Plugdata and am trying to get two potentiometers and 1 switch set up for use through a custom json file. Every time I have exported a test patch to the daisy, this error appears after compiling:

Warning c2daisy: Unable to load display code from
/Users/landon/Documents/pd_projects/wave.json. Using fallback.

One potentiometer was mapped to the pitch of an oscillator and the other to a volume. Neither of them changed anything. Everything else about the patch works as intended except the hardware mapping. To confirm that it wasn’t a breadboard problem, I loaded the patch with the petal json and the potentiometer worked. Any insight into why this error is occurring and ways to fix it? Here is the json for reference:

{
    "name": "waveseed",
    "som": "seed",
    "audio": {"channels" : 1},
    "components": {
        "knob1": {
            "component": "AnalogControl",
            "pin": 22
        },
        "knob2": {
            "component": "AnalogControl",
            "pin": 23
        },
        "switch1": {
            "component": "Switch",
            "pin": 24
        }
    }
}

I don’t see an error, but I do see a warning. We should hide warnings when oled display settings are only default.

Created a ticket on the project: UX: Daisy config without display section shows default warning - confusing for users · Issue #349 · Wasted-Audio/hvcc · GitHub

Make sure you are using correct pin numbers. You have to use the “D”/Digital numbering as described in the documentation: Board JSON - Heavy Compiler Collection

I had the pins mapped wrong like you said :sweat_smile:

Everything is working in the test patch as intended, thank you for the help!

1 Like