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
Acme Systems srl
Via Aldo Moro 53 - 00055 Ladispoli (RM) - Italy
Partita IVA / Codice Fiscale 08114831004 - Tel +39.06.99.12.187 - Fax +39.06.622.765.31 - email: email@example.com pec: firstname.lastname@example.org
Iscritta al Registro delle Imprese di Roma al n. 08114831004 - REA: RM-1074631