Giter Site home page Giter Site logo

Comments (2)

claudeheintz avatar claudeheintz commented on July 18, 2024

The got_dmx flag should be set to zero after you have read the input data in the main loop. Testing got_dmx at the start of the loop to see if it has been set by an incoming packet will then be false when an input is disconnected. It will remain false until set by the data received callback function.

The input example is updated to show this.

from lxsamd21dmx.

fostiras avatar fostiras commented on July 18, 2024

Oh, so you mean the got_dmx flag has to be manually cleared after the reading?
I see the updated example. While I was studying your library I added two features found in mathertel's DMXserial library that I liked very much : 1.dataUpdated () and 2.noDataSince () . I added them with the same names eg SAMD21DMX.dataUpdated(). The noDataSince Class has the included ability of setting the timeout and does not require a manual flag clear/reset. The dataUpdated() Class needs also the resetUpdated() and gives a nice busy indication when there is a value change in a slot.
I am very new to GitHub and will try to open my first (!!!) Pull Request with the extra lines of code. Anyway everything works wonderful!!! Thanks to your library I save plenty of time switching my projects to SAMD21.

from lxsamd21dmx.

Related Issues (7)

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.