Giter Site home page Giter Site logo

stuart12 / delcom-clock Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 63 KB

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

Python 89.03% Shell 10.97%

delcom-clock's Introduction

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.

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.