excess.org

Ian Ward

Consulting
Generic Consulting Inc.
Software
Urwid 2010-01-25 (0.9.9.1)
Speedometer 2008-05-29 (2.6)
Templayer 2009-03-08 (1.5.1)
mkzip.py 2003-09-15 (1.2)
File Tosser 2001 (0.1e-6)
Writing
Tags

Home

Ian Ward's email:
first name at this domain

IRC: wardi on OFTC

Facebook profile

Locations of visitors to this page

Urwid on a Crystalfontz 635 LCD

Crystalfontz preview
Posted on 2010-03-14.

The development version of Urwid now has support for display and input on a Crystalfontz 635 LCD panel. These are small LCD screens that fit in a PC's 5ΒΌ" drive bay. They have six buttons, four red/green LEDs and a 20x4 character display with an adjustable backlight.

This sort of device is great for simple interfaces to headless machines, like media PCs and special-purpose systems. Urwid simplifies building an interface by taking care of text wrapping, scrolling and cursor movement. The new lcd_display.py module also handles CRCs, acknowledgements and can simulate key repeating so the device acts more like a regular keyboard. It should also be easy to add support for other similar devices.

The new example program lcd_cf635.py demonstrates the new display module and all of the features of this device. It also provides a good example of how to build simple menus and customize widgets for a device like this.

lcd_cf635.py demo program

Tags: Urwid Hardware Software Linux Python