I'm looking into the possibility to use my Bela for an installation I'm making. It's controlling a bunch of lights by using the Adafruit breakout board for the TLC59711 (https://www.adafruit.com/product/1455). I'd like to develop the whole installation in c++ but the needed audio processing would be done in Pure Data. Is there a way to run both simultaneously on Bela and bridge between so that I can activate parts of my c++ code whenever something get triggered in the PD patch. Hope someone can help me out with this, and point me in the right direction 🙂

Best,
Robbert

    Robbert t's controlling a bunch of lights by using the Adafruit breakout board for the TLC59711

    If you are on Bela, you will find that you have no "hardware" SPI port available to control your chip. There is a 100kHz "soft-SPI" interface available, but the performance of this will be heavily dependent on the CPU load, as it is effectively bitbanging the SPI protocol on a GPIO. BelaMini, on the other hand, does have a spare SPI hardware port to use with it.

    If you are on Bela, you may consider using an i2c device, such as the PCA9685 successfully used here.