Class Hierarchy   Compound List   File List   Compound Members   File Members  

lcd.h File Reference

ROM LCD control. More...

Defines

Enumerations

Functions


Detailed Description

ROM LCD control.

Author(s):
Markus L. Noga <noga@inrialpes.fr>

Warning:
Display updates are realized exclusively by lcd_refresh()


Define Documentation

#define lcd_clock(t)

display a clock.

passing an argument of 1015 will display 10.15


Enumeration Type Documentation

enum lcd_segment

LCD segment codes.

these are not to be confused with the codes defined in direct-lcd.h

circle and dot codes cycle. cycle state is preserved on powerdown.

each dot code should be invoked six times before using the other. mixing them will result in strange behaviour.

Enumeration values:

enum lcd_number_style

LCD number display styles.

note: signed and unsigned are taken by the C programming language

Enumeration values:

enum lcd_comma_style

LCD comma display styles.

Enumeration values:


Function Documentation

void lcd_show (lcd_segment segment)

show LCD segment.

Parameters:
segment - segment to show

void lcd_hide (lcd_segment segment)

hide LCD segment.

Parameters:
segment - segment to hide

void lcd_number (int i, lcd_number_style n, lcd_comma_style c)

show number on LCD display.

Parameters:
i - the number
n - a number style
c - a comma style

void lcd_refresh (void)

show LCD display contents to the world.

display updates are realized exclusively by calling this function.


legOS-0.1.7 is released under Mozilla Public License. Original code © 1998-1999 by Markus L. Noga.