Go to the source code of this file.
Defines | |
#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 |
Definition in file lcd.h.
|
g++ warns about __asm__ __volatile__. we define the problem away. the CXX symbol is predefined in the Makefile
Definition at line 150 of file lcd.h. Referenced by lcd_clear(), lcd_hide(), and lcd_show(). |
|
display a clock. passing an argument of 1015 will display 10.15 |
|
display a single digit right of the man symbol
|
|
display an integer in decimal
|
|
display an unsigned value in decimal
|
|
LCD comma display styles.
|
|
LCD number display styles. note: signed and unsigned are taken by the C programming language |
|
|
clear LCD display
Definition at line 191 of file lcd.h. References ASMVOLATILE. |
|
hide LCD segment
Definition at line 171 of file lcd.h. References ASMVOLATILE. |
|
show number on LCD display
|
|
show LCD segment
Definition at line 156 of file lcd.h. References ASMVOLATILE. |
brickOS is released under the
Mozilla Public License.
Original code copyright 1998-2002 by the authors. |