Comments (2)
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lxsamd21dmx.