Class Hierarchy   Compound List   File List   Compound Members   File Members  

conio.h File Reference

console input / output. More...

Functions


Detailed Description

console input / output.

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

Warning:
Display updates are realized exclusively by lcd_refresh()

Display positions
Digit display positions are denumerated from right to left, starting with 0 for the digit right to the running man. Digit 5 is only partially present on the RCXs display.

Native segment masks
In these bitmasks, bit 0 toggles the middle segment. Bit 1 toggles the top right segment, and the remaining segments are denumerated counterclockwise. The dot isn't encoded because it is desirable


Function Documentation

void delay (unsigned d)

uncalibrated delay loop.

Parameters:
ms - approximate time in ms

void cputc_native_0 (char mask)

display native mode segment mask at display position 0.

Parameters:
mask - the mask to display

void cputc_native_1 (char mask)

display native mode segment mask at display position 1.

Parameters:
mask - the mask to display

void cputc_native_2 (char mask)

display native mode segment mask at display position 2.

Parameters:
mask - the mask to display

void cputc_native_3 (char mask)

display native mode segment mask at display position 3.

Parameters:
mask - the mask to display

void cputc_native_4 (char mask)

display native mode segment mask at display position 4.

Parameters:
mask - the mask to display

void cputc_native_5 (char mask)

display native mode segment mask at display position 5.

Parameters:
mask - the mask to display. only the middle segment is present on the display.

void cputc_native (char mask, int pos)

display native mode segment mask.

Parameters:
mask - the segment mask.
pos - the desired display position.

this is a dispatcher for the fixed position routines.

void cputw (unsigned word)

display a hexword in the four leftmost positions.

Parameters:
word - the hexword

position 0 is unaffected by this call.

void cputs (char * s)

display an ASCIIZ string.

Parameters:
s - the string

only the first 5 characters will be displayed.

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