153
C-Control Pro Mega Series
with 16 bits. Bits that are set represent keys that have been pressed during the scan.
Return Parameter
16 bits that represent the input lines of the keyboard
6.10.3 Key_TranslateKey
Keyboard Functions
Syntax
char Key_TranslateKey(word keys);
Sub Key_TranslateKey(keys As Word) As Char
Description
This help function looks for the first "1" in the bit field, and returns the
ASCII value of the corresponding key.
Parameter
keys bit field value that has been retuned from Key_Scan()
Return Parameter
ASCII value of recognized keys
-1 if no key is pressed
6.11
LCD
A part of these routines is implemented in the Interpreter, another part can be called up by
appending library "LCD_Lib.cc". Since the functions in "LCD_Lib.cc" are realized through Bytecode
they are slower when executed. Library functions however have the advantage that they can be taken
from the project by omitting the library in case they are not needed. Direct Interpreter functions are
always present, will however take up flash memory.
6.11.1 LCD_ClearLCD
LCD Functions
Syntax
void LCD_ClearLCD(void);
Sub LCD_ClearLCD()
Description
(Library "Key_Lib.cc")
(Library "LCD_Lib.cc")
© 2008 Conrad Electronic
Need help?
Do you have a question about the C-Control Pro Mega Series and is the answer not in the manual?
Questions and answers