#include <config.h>
#include <sys/lcd.h>
#include <dlcd.h>
#include <dkey.h>
Go to the source code of this file.
Functions | |
| void | delay (unsigned ms) |
| delay approximately ms mSec | |
| void | cputc_native_0 (char mask) |
| write bit-pattern for segments at position 0 of LCD | |
| void | cputc_native_1 (char mask) |
| write bit-pattern for segments at position 1 of LCD | |
| void | cputc_native_2 (char mask) |
| write bit-pattern for segments at position 2 of LCD | |
| void | cputc_native_3 (char mask) |
| write bit-pattern for segments at position 3 of LCD | |
| void | cputc_native_4 (char mask) |
| write bit-pattern for segments at position 4 of LCD | |
| void | cputc_native_5 (char mask) |
| write bit-pattern for segments at position 5 of LCD | |
| void | cputc_native (char mask, int pos) |
| Set/Clear individual segments at specified position of LCD. | |
| void | cputc_hex_0 (unsigned nibble) |
| write HEX digit to position 0 of LCD | |
| void | cputc_hex_1 (unsigned nibble) |
| write HEX digit to position 1 of LCD | |
| void | cputc_hex_2 (unsigned nibble) |
| write HEX digit to position 2 of LCD | |
| void | cputc_hex_3 (unsigned nibble) |
| write HEX digit to position 3 of LCD | |
| void | cputc_hex_4 (unsigned nibble) |
| write HEX digit to position 4 of LCD | |
| void | cputc_hex_5 (unsigned nibble) |
| write HEX digit to position 5 of LCD | |
| void | cputc_hex (char c, int pos) |
| Write HEX digit to specified position of LCD. | |
| void | cputw (unsigned word) |
| Write a HEX word to LCD. | |
| void | cputc_0 (unsigned c) |
| write ASCII char to position 0 of LCD | |
| void | cputc_1 (unsigned c) |
| write ASCII char to position 1 of LCD | |
| void | cputc_2 (unsigned c) |
| write ASCII char to position 2 of LCD | |
| void | cputc_3 (unsigned c) |
| write ASCII char to position 3 of LCD | |
| void | cputc_4 (unsigned c) |
| write ASCII char to position 4 of LCD | |
| void | cputc_5 (unsigned c) |
| write ASCII char to position 5 of LCD | |
| void | cputc (char c, int pos) |
| Write ASCII character to specified position of LCD. | |
| void | cputs (char *s) |
| Write string s to LCD (Only first 5 chars). | |
| void | cls () |
| clear user portion of LCD | |
Variables | |
| const char | hex_display_codes [] |
| Table: list of native patterns, one for each HEX character. | |
| const char | ascii_display_codes [] |
| Table: list of native patterns, one for each ASCII character. | |
Definition in file conio.h.
| void cls | ( | ) |
| void cputc | ( | char | c, | |
| int | pos | |||
| ) | [inline] |
Write ASCII character to specified position of LCD.
(this is essentially a dispatcher for cputc_[0-5] functions)
| c | the ASCII char to be displayed | |
| pos | the location at which to display the ASCII char |
Definition at line 210 of file conio.h.
References cputc_native().
| void cputc_0 | ( | unsigned | c | ) | [inline] |
write ASCII char to position 0 of LCD
Definition at line 174 of file conio.h.
References cputc_native_0().
| void cputc_1 | ( | unsigned | c | ) | [inline] |
write ASCII char to position 1 of LCD
Definition at line 179 of file conio.h.
References cputc_native_1().
| void cputc_2 | ( | unsigned | c | ) | [inline] |
write ASCII char to position 2 of LCD
Definition at line 184 of file conio.h.
References cputc_native_2().
| void cputc_3 | ( | unsigned | c | ) | [inline] |
write ASCII char to position 3 of LCD
Definition at line 189 of file conio.h.
References cputc_native_3().
| void cputc_4 | ( | unsigned | c | ) | [inline] |
write ASCII char to position 4 of LCD
Definition at line 194 of file conio.h.
References cputc_native_4().
| void cputc_5 | ( | unsigned | c | ) | [inline] |
write ASCII char to position 5 of LCD
Definition at line 199 of file conio.h.
References cputc_native_5().
| void cputc_hex | ( | char | c, | |
| int | pos | |||
| ) | [inline] |
Write HEX digit to specified position of LCD.
(this is essentially a dispatcher for cputc_hex_[0-5] functions)
| c | the HEX digit to be displayed | |
| pos | the location at which to display the HEX digit |
Definition at line 164 of file conio.h.
References cputc_native().
| void cputc_hex_0 | ( | unsigned | nibble | ) | [inline] |
write HEX digit to position 0 of LCD
Definition at line 128 of file conio.h.
References cputc_native_0().
| void cputc_hex_1 | ( | unsigned | nibble | ) | [inline] |
write HEX digit to position 1 of LCD
Definition at line 133 of file conio.h.
References cputc_native_1().
| void cputc_hex_2 | ( | unsigned | nibble | ) | [inline] |
write HEX digit to position 2 of LCD
Definition at line 138 of file conio.h.
References cputc_native_2().
| void cputc_hex_3 | ( | unsigned | nibble | ) | [inline] |
write HEX digit to position 3 of LCD
Definition at line 143 of file conio.h.
References cputc_native_3().
| void cputc_hex_4 | ( | unsigned | nibble | ) | [inline] |
write HEX digit to position 4 of LCD
Definition at line 148 of file conio.h.
References cputc_native_4().
| void cputc_hex_5 | ( | unsigned | nibble | ) | [inline] |
write HEX digit to position 5 of LCD
Definition at line 153 of file conio.h.
References cputc_native_5().
| void cputc_native | ( | char | mask, | |
| int | pos | |||
| ) |
Set/Clear individual segments at specified position of LCD.
(this is essentially a dispatcher for cputc_native_[0-5] functions)
| mask | the segment pattern to be displayed | |
| pos | the location at which to display the segment pattern |
Referenced by cputc(), and cputc_hex().
| void cputc_native_0 | ( | char | mask | ) |
write bit-pattern for segments at position 0 of LCD
Referenced by cputc_0(), cputc_hex_0(), and show_on().
| void cputc_native_1 | ( | char | mask | ) |
write bit-pattern for segments at position 1 of LCD
Referenced by cputc_1(), cputc_hex_1(), and show_on().
| void cputc_native_2 | ( | char | mask | ) |
write bit-pattern for segments at position 2 of LCD
Referenced by cputc_2(), cputc_hex_2(), show_off(), and show_on().
| void cputc_native_3 | ( | char | mask | ) |
write bit-pattern for segments at position 3 of LCD
Referenced by cputc_3(), cputc_hex_3(), show_off(), and show_on().
| void cputc_native_4 | ( | char | mask | ) |
write bit-pattern for segments at position 4 of LCD
Referenced by cputc_4(), cputc_hex_4(), show_off(), and show_on().
| void cputc_native_5 | ( | char | mask | ) |
| void cputs | ( | char * | s | ) |
| void cputw | ( | unsigned | word | ) |
Write a HEX word to LCD.
| void delay | ( | unsigned | ms | ) |
delay approximately ms mSec
delay approximately ms mSec
| ms | approximate time in ms |
Definition at line 203 of file conio.c.
Referenced by MotorPair::brake(), Motor::brake(), kmain(), Sensor::sample(), LightSensor::sample(), show_on(), and Sensor::strobe().
| const char ascii_display_codes[] |
Table: list of native patterns, one for each ASCII character.
| const char hex_display_codes[] |
Table: list of native patterns, one for each HEX character.
|
brickOS is released under the
Mozilla Public License.
Original code copyright 1998-2005 by the authors. |
1.5.4