erichhansen / golight Goto Github PK
View Code? Open in Web Editor NEWControl a delcom light using go.
License: MIT License
Control a delcom light using go.
License: MIT License
Create a bootstrap app to run through all the lights in sequence. This would aid in quick debugging on new machines/environments.
Not sure what is causing this. The defer leds.Close()
should be fine as it will close the device when the scope of the parent function ends. Hmm.
I recommend that sendCommand
is run rapidly in a loop and monitor file/resource usage in Linux and see if we can get it to crash fast.
I double we are hitting a ulimit/file handle limit -- those seem very high and with the 10s polling that would take FOREVER to hit. The limit can be seen with ulimit -n
, see files with lsof
and the max files with cat /proc/sys/fs/file-max
.
In order to support recovery of the Delcom light unplugged and plugged back in, it would be nice if sendCommand
returned an err
so the caller can retry.
Or... perhaps a way to test if the device exists? Could present race conditions on when the device is unplugged during a post-test sequence of commands, though.
Seems like returning an err
is the best way so the caller can handle these situations?
Include a sample of /etc/udev/rules.d rules to allow r/w access to the Delcom HID device as non-root. Ideally include instructions to reload udev (seems weird, search SO) with rebooting as well.
Seems like every usage of Flash
would be accompanied by an On
?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.