Giter VIP home page Giter VIP logo

json2daisy's People

Contributors

corvusprudens avatar dromer avatar stephenhensley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

wasted-audio

json2daisy's Issues

Patch SM CV mappings

Currently, the correct Patch SM CV channel is extrapolated from a component name in the board description JSON. This is not good practice. Instead, the pin field you'd use for a seed-based component should be replaced with the desired channel enum (e.g. CV_1) for all AnalogControl-type components.

Add MIT license

if MIT is not an option due to any dependencies we can reevaluate.

Set up CI to run tests

With the tests at least partially set up, now would be a good time to implement automatic testing here.

Consider output format for mappings

Since the intended uses for the generated code is not only PD, it's not necessary (and maybe undesirable) to convert everything to a float.

Add sources from hvcc

add standalone daisy_board_jen.py

and any required, local templates (like defaults, etc.)

Add PyPi-specific files

needs setup.py, setup.cfg, LICENSE (tbd, either MIT or LGPL, but probably depends on included libs..), and README

There's a pretty cool post here that goes over the whole process, and has an example of a lot of the files, and the overall process

Bug: mpr121 pin setup incorrect

When using a setup like:

	"parents": {
        "mpr121_driver": {
			"component": "Mpr121",
			"pin": {
			  "scl": 11,
			  "sda": 12
			}
        }
    },

We get compile errors like:

HeavyDaisy_Untitled.hpp:63:45: error: no match for 'operator=' (operand types are 'daisy::Pin' and 'dsy_gpio_pin')
   63 |     mpr121_driver_config.scl = som.GetPin(11);
      |                                             ^

Coming from this line in the component defs: https://github.com/electro-smith/json2daisy/blob/main/src/json2daisy/resources/component_defs.json#L558

I wonder if it would make sense to have the i2c setup for the mpr121 sensors more like the other i2c peripherals and delegate this to an i2c parent config.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.