plugdata-team / plugdata

Pure Data as a plugin, with a new GUI
https://plugdata.org
GNU General Public License v3.0
1.44k stars 62 forks source link

Non-audio I/O not working when flashing patch to Daisy Seed #1110

Open sonicdebris opened 1 year ago

sonicdebris commented 1 year ago

First, thanks for the effort in providing Daisy Seed support in the app!

I am on ubuntu 22.04, using plugdata build from the apt repos.

I succesfully managed to load a simple patch to my Daisy Seed using plugdata: audio I/O works, but apparently sending data to the GPIO doesn't. Specifically, I am trying to blink the user led, basically following electrosmith's getting started guide, using this custom json, taken straight from the guide:

{
    "name": "patch",
    "som": "seed",
    "components": {
        "led": {
        "component": "UserLed"
        } 
    }
}

And sending one and zero to a [s led @hv_param] object.

Everything fully works when flashing the Seed using pd2dsy from terminal (using the tool installed using electrosmith's instructions). Interestingly, if I don't select my custom json and select "seed" as the board, compilation will fail because of missing "led" label.

In case it helps, this is the patch:

#N canvas 236 572 1408 796 12;
#X obj 319 133 adc~;
#X obj 267 300 dac~;
#X obj 150 138 osc~ 220;
#X obj 224 196 *~;
#X obj 301 199 *~;
#X obj 493 106 loadbang;
#X obj 493 135 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000 0 1;
#X obj 493 230 s led @hv_param;
#X obj 493 198 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000 0 1;
#X obj 272 263 *~ 0.3;
#X text 493 81 Blink the Daisy's user led;
#X text 31 86 Output a pure tone \, and what's being feed to the audio input both signals amplitude-modulated.;
#X text 150 31 PATCH TO LOAD INTO THE DAISY SEED;
#X obj 224 138 osc~ 0.8;
#X obj 493 166 metro 800;
#X connect 0 0 4 1 empty;
#X connect 0 1 4 1 empty;
#X connect 2 0 3 0 empty;
#X connect 3 0 9 0 empty;
#X connect 4 0 9 0 empty;
#X connect 5 0 6 0 empty;
#X connect 6 0 14 0 empty;
#X connect 8 0 7 0 empty;
#X connect 9 0 1 0 empty;
#X connect 9 0 1 1 empty;
#X connect 13 0 3 1 empty;
#X connect 13 0 4 0 empty;
#X connect 14 0 8 0 empty;
dromer commented 2 months ago

@sonicdebris sorry I hadn't seen this ticket (and it's not a plugdata issue, but related to the Heavy compiler).

Your patch works for me on a Seed, is this still an issue for you?