Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable gen~ parameter control from UART/SPI/I2C pins on Daisy Seed #48

Open
tmarasco125 opened this issue Apr 25, 2021 · 2 comments
Open

Comments

@tmarasco125
Copy link

tmarasco125 commented Apr 25, 2021

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?

@tmarasco125 tmarasco125 changed the title Enable gen~ parameter control from SPI/I2C pins on Daisy Seed Enable gen~ parameter control from UART/SPI/I2C pins on Daisy Seed Apr 25, 2021
@koshimazaki
Copy link

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.

@grrrwaaa
Copy link
Contributor

grrrwaaa commented Jul 7, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants