stuart12 / delcom-clock Goto Github PK
View Code? Open in Web Editor NEWturn your Delcom Engineering USB Numeric Display into a clock 0fc5:1227
Home Page: http://www.pook.it/delcom
License: GNU General Public License v3.0
turn your Delcom Engineering USB Numeric Display into a clock 0fc5:1227
Home Page: http://www.pook.it/delcom
License: GNU General Public License v3.0
This is a python program to turn your seven segment Generation I Delcom Engineering USB Numeric Display (USB ID 0fc5:1227) into a clock. Author: Stuart Pook, http://www.pook.it/, 2011-2019 Find the names of the displays on your machine (these names can be directly passed to delcom-clock): ls /sys/bus/usb/drivers/usbsevseg | grep : You can turn the clock on and off by writing 1 or 0 into a named pipe (see the --control option). http://www.delcomproducts.com/ https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/usb/misc/usbsevseg.c I would like delcom-clock to exit as soon as the device is unplugged. I don't know how to do this. I only seem to be able to find out that the device has been removed when I write to it. Polling on the device does not seem to give me a wakeup when the device is removed. This is why delcom-clock continues to write to the device even when the clock is off. Delcom-clock should use raw mode so that it can show space characters rather than hyphens. I have not tested this with a six digit 7 segment display because I don't have one. If the kernel module only accepts 6 digits, then delcom-clock with just use the last 6 digits of the text to be displayed. If you have 8 digit display and Linux 2.6.37 or earlier you need to recompile the usbsevseg module if you want to use more than just the rightmost 6 digits. Just set MAXLEN to 8 rather than 6. See the README.module script for how to do this. This program can be found at http://github.com/stuart12/delcom-clock Thanks to Harrison Metzger for the kernel driver for this device.
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.