How to modulate an object parameter via I2C


#1

Hi all, I'm trying to add a few knobs using arduino chips (Attiny85) and I would like to send that data to the Axoloti via I2C. My question is, how can I link the knob values to a parameter inside an object? e.g.: filter cutoff frequency.

Thank you!!


#2

You will need to create a custom object for that. Best is to take a look at some of the community objects that use I2C to see how they handle incoming data and map it to the correct outlet of the custom object. See deadsy/ttp229/ttp229_bool for instance.


#3

Hi! Thanks for replying. I took a look to that object and it has no inlets, so I don't know how to send data via I2C using that object. But imagine that I could use it, how can I use the outlets of that object to control a parameter from another object? Do I need to use something like the patch/modsource object?


#4

The object doesn't need any inlets. The code to for the I2C communication is not directly in the object, but in the ./ttp229.h file that is included at compilation time. You'll find that file in the same directory as the object.