|
brickOS C++ v0.9.0
|
ROM Interface: RCX LCD control. More...
Go to the source code of this file.
Macros | |
| #define | lcd_int(i) lcd_number(i,sign,e0) |
| display an integer in decimal | |
| #define | lcd_unsigned(u) lcd_number(u,unsign,e0) |
| display an unsigned value in decimal | |
| #define | lcd_clock(t) lcd_number(t,unsign,e_2) |
| display a clock. | |
| #define | lcd_digit(d) lcd_number(d,digit,digit_comma) |
| display a single digit right of the man symbol | |
| #define | ASMVOLATILE __volatile__ |
Enumerations | |
| enum | lcd_segment { man_stand = 0x3006 , man_run = 0x3007 , s1_select = 0x3008 , s1_active = 0x3009 , s2_select = 0x300A , s2_active = 0x300B , s3_select = 0x300C , s3_active = 0x300D , a_select = 0x300E , a_left = 0x300F , a_right = 0x3010 , b_select = 0x3011 , b_left = 0x3012 , b_right = 0x3013 , c_select = 0x3014 , c_left = 0x3015 , c_right = 0x3016 , unknown_1 = 0x3017 , circle = 0x3018 , dot = 0x3019 , dot_inv = 0x301A , battery_x = 0x301B , ir_half = 0x301C , ir_full = 0x301D , everything = 0x3020 } |
| LCD segment codes. More... | |
| enum | lcd_number_style { digit = 0x3017 , sign = 0x3001 , unsign = 0x301F } |
| LCD number display styles. More... | |
| enum | lcd_comma_style { digit_comma = 0x0000 , e0 = 0x3002 , e_1 = 0x3003 , e_2 = 0x3004 , e_3 = 0x3005 } |
| LCD comma display styles. More... | |
Functions | |
| void | lcd_show (lcd_segment segment) |
| show LCD segment | |
| void | lcd_hide (lcd_segment segment) |
| hide LCD segment | |
| void | lcd_number (int i, lcd_number_style n, lcd_comma_style c) |
| show number on LCD display | |
| void | lcd_clear (void) |
| clear LCD display | |
ROM Interface: RCX LCD control.
Definition in file lcd.h.
| #define ASMVOLATILE __volatile__ |
| #define lcd_clock | ( | t | ) | lcd_number(t,unsign,e_2) |
| #define lcd_digit | ( | d | ) | lcd_number(d,digit,digit_comma) |
| #define lcd_int | ( | i | ) | lcd_number(i,sign,e0) |
| #define lcd_unsigned | ( | u | ) | lcd_number(u,unsign,e0) |
| enum lcd_comma_style |
| enum lcd_number_style |
| 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.
|
externinline |
|
externinline |
hide LCD segment
| segment | segment to hide |
Definition at line 171 of file lcd.h.
References ASMVOLATILE.
|
extern |
show number on LCD display
| i | the number |
| n | a number style |
| c | a comma style |
|
externinline |
show LCD segment
| segment | segment to show |
Definition at line 156 of file lcd.h.
References ASMVOLATILE.