Looking at my diary, I’m going to be a bit too busy to get much more coding done till late June now.
Almost everything I’ve done has been pushed up to the dev branch on my fork.
I’m currently in the process of wrapping access to the script array, but I haven’t finished it yet, and might not get a chance for the next few weeks. Once I’ve done that, I’m at the point of being able to completely separate the algorithm part from the hardware part. Ideally that’s when I’d have put the next PR in. But I’m wondering if it might be better to put a PR in now?
Here is the compare view from GitHub
@bpcmusic regarding i2c, I know that @tehn has been doing some work on enhancing the i2c communication, look at the commits for libavr32. I think it was partly due to another manufacturer’s module adding support for the II bus (and I think I know which one too).
Anyway, here is the ultra quick guide to adding your own ops, assuming that you’re working of my dev branch.
- (in case you’re not a git expert) Fork the repo and don’t work on the master branch!
- Create a new
.c and .h file in src/ops/, maybe expander.c?
- Add the
.c file to the Makefiles in tests and simulator, and to config.mk in src/
- Add the include to
src/ops/op.c
- Create the ops (perhaps copy the
CV, etc ones and adapt)
- Add the ops to the table in
src/ops/op.c, don’t forget to update the number of ops
If you get stuck with defining an op properly give me a shout (or anything else you need help with). Unfortunately it’s still in a state of flux, so the comments or structuring aren’t the best.