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

Support for custom Seed projects #34

Open
grrrwaaa opened this issue Jan 1, 2021 · 4 comments
Open

Support for custom Seed projects #34

grrrwaaa opened this issue Jan 1, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@grrrwaaa
Copy link
Contributor

grrrwaaa commented Jan 1, 2021

May require some larger changes to genlib_daisy.h, a custom target JSON, etc.

Also documentation of how to do it!

@grrrwaaa grrrwaaa added the enhancement New feature or request label Jan 1, 2021
@grrrwaaa
Copy link
Contributor Author

grrrwaaa commented Jan 3, 2021

  • Oopsy.js can already handle paths to JSON files as target definitions in the arguments.
  • "special case" code in genlib_daisy.h needs to be filtered out as much as possible and turned into properties of target JSON files. This is partially done.
  • Config files will need extra sections to insert necessary code into the main() for configuration of pins etc., processAllControls equivalent for the audioCallback, anything similar into the main or display callbacks, etc. There is now an "inserts" array in the JSON with "where" ("header"/"init"/"main"/"display"/"audio") and "code" sections as a general way of doing this.
  • Max interface needs a "browse" button to search for a custom interface definition JSON and pass that through to oopsy.js; and a @target option to make that default?
  • Documentation needed for the requirements and options of the JSON files.

@grrrwaaa
Copy link
Contributor Author

grrrwaaa commented Jan 6, 2021

Max interface now updated in dev branch to include browse and @target support for custom JSON configs. Support for insert code sections has now been added to the code generator and JSON schema.

This may be ready for alpha testing to identify any missing capabilities. Documentation still required.

@grrrwaaa
Copy link
Contributor Author

grrrwaaa commented Jan 6, 2021

Created wiki page to document this here: https://github.com/electro-smith/oopsy/wiki/Custom-Seed-Targets

@grrrwaaa
Copy link
Contributor Author

release/tag v0.4.0 introduces a new JSON format:

https://github.com/electro-smith/oopsy/wiki/Custom-Seed-Targets

This remains a work in progress, but has been designed in coordination with @stephenhensley to make it simple to create a quick template for breadboarding type projects. As of now it does not handle OLED, SDcard, I2C, UART or anything like that, mostly just GPIO stuff.

The old JSON formata also continues to function in the meantime.

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

No branches or pull requests

1 participant