Action
Wait until a character is received in the serial buffer.
Syntax
var = WAITKEY()
var = WAITKEY(#channel)
Remarks
Var |
Variable that is assigned with the ASCII value of the serial buffer. |
channel |
The channel number of the device |
var : Byte, Integer, Word, Long, String.
See also
Example
Dim A As Byte
A = Waitkey 'wait for character
Print A
Example
Dim A As Byte
Open "COM2:" For Binary As #1 'open serial chan.1 COM2 of 80517/80537
Dim St As Byte
St = Inkey(#1) 'get key
St = Inkey() 'get key from COM1 (the default)