The display used in this example is a 20x2 characters from Delta Optoelectronics. It smarts high contrast and brightness and a large visibility angle. The protocol used is the standard Hitachi HD44780 with 4 bits of data interface. It can be used for a large number of different LCD display sizes. In the following figure it is shown the interconnection schematic between the FOX Board and the LCD display.
Interconnection between the FOX Board and a LCD with Hitachi HD44780 interface
To interface and write the LCD display we built a small library of functions, available in this file:
and containing the basic display functions as:
In the following code fragment you can see an example of use of these functions to generate the classical message "Hello world !" on the display.
fd = open("/dev/gpiog", O_RDWR); lcd_init(fd); lcd_printf(fd,"Hello world !"); close(fd);
The instructions open() and close() are used to access the I/O lines to drive the display.
Our RSS reader in action on the ANSA server (an italian news agency)
The RSS format (acronim of Really Simple Syndication) is very common in Internet to offer a service of news spreading in a format very easy to understand and parse. Some sites that offer this service are:
The format is obviously based on the XML protocol and it contains several tags with data as title, short description, date and time, source of origin of the news etc. To get an idea on what can contain an RSS file click this: http://rss.cnn.com/rss/cnn_world.rss.
Our application example downloads from Internet, through a wget system call, the RSS file that contains the news we are interested in. It then extracts every title news that is located between the title tags and shows it on the second line of the LCD display. In this way we can have the fresh news of the day without even switching on the PC.
The MS-10-2004F Everbouquet display connected to the FOX Board
everbouquet.c Library for the Everbouquet display and example
Atmel© Certified Partner
Acme Systems provides this documentation "as is" without warranty or guarantees of any kind. The mantainer of this site (Sergio Tanzilli), has gone to a great deal of effort into making this documentation as correct as possible. Acme Systems doesn't provide any direct support for the Open Source preinstalled software but provides, through these pages and forum posts, all the information required to obtain the sources, install, use and update the Open Source softwares runnable on the FOX Board, NetusG20, AriaG25 and Terra platforms. Please note that all the preinstalled softwares, used on the Acme Systems products, are Open Source and you will have to check the license terms provided (usually the GPL) by each author before using it in any commercial or non-commercial product, by yourself. Before sending emails or calling the Acme staff here are our contacts please note that WE ARE MAINLY HARDWARE DESIGNERS and NOT LINUX GURUS so could be better to post your questions directly to the forum listed below to be sure that all the contributors of this site and the large software developers community will read and reply to your questions.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.