Code Monkey home page Code Monkey logo

Comments (2)

kurbatov avatar kurbatov commented on June 12, 2024

Hi @willishf,

I think implementation of OneWire support in firmata4j is doable. Unfortunately I don't have a OneWire device in my possession I could tinker with, understand how the protocol works and use for debugging. That's why it is hard for me to reason about details of implementation or implement it on my own. Although I've just submitted my vision of the interface firmata4j has to implement, I would love to see someone contributing OneWire support as a PR. For now I can only refer to the prior discussion on OneWire support #16 and summarize it here:

Firmata supports OneWire via sysex messages which are supported by firmata4j.
Firmata definies OneWire messages here: https://github.com/firmata/protocol/blob/master/onewire.md
The board should be flushed with ConfigurableFirmata which enables OneWire capability for the pins by default.

Here you can find the code that is responsible for sending a new pin mode message to the board. This method executes when OneWire mode is assigned to a pin.

I think it should be possible to extend Firmata for large data streams if not supported already. You can try to find an already existing feature that suits the task in the feature registry of Firmata or discuss your case there and propose a new feature. Newly proposed extension will probably require modification of the firmware though.

from firmata4j.

willishf avatar willishf commented on June 12, 2024

from firmata4j.

Related Issues (20)

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.