oopsy
oopsy copied to clipboard
Enable gen~ parameter control from UART/SPI/I2C pins on Daisy Seed
Hi there!
I'd like to be able to control params in a gen~ patch loaded onto the Daisy Seed from a secondary microcontroller (ESP32) over either UART Serial, I2C, or SPI. Would it be possible to modify the same process of setting custom pins for external control through pots and buttons in order to receive data coming from these busses instead?
Bumping this as think this is a great idea. I think having Daisy talk to other devices like ER301 and Teletype for example would be amazing too. The fact that you can program it with Oopsy in gen positions it really well among those devices. With i2c potentially you could have more parameters available than those on the panel. Just posting a few potentially useful links: http://wiki.orthogonaldevices.com/index.php/ER-301/Teletype_Integration https://github.com/scanner-darkly/teletype/wiki/II-protocol https://llllllll.co/t/teletype-4-0-0-beta-2-new-june-20-ready-for-testing/45871
I would be more than happy to beta test this.
Short answer to the question "Would it be possible to modify the same process of setting custom pins for external control..." is yes.
The long answer is that it will need understanding how I2C works in libdaisy -- see the header file here: https://github.com/electro-smith/libDaisy/blob/4aa94d0d9fae8fbacccec9794af37ea05fdc2f7f/src/per/i2c.h
Unfortunately there isn't a general I2C example in DaisyExamples to crib code from yet, but the Daisy Field and Daisy Petal appear to use i2c to address its LEDs via class LedDriverPca9685, so looking at the daisy_field.cpp etc. might also provide some ideas.