
The “Serial to Keyboard Converter” helps to develop a keyboard key in application without
any serial port input function. It supports multi regions, i.e., an application can make use of
this tool for varying keyboard layout.
The 8x60 series allows application send data for the purpose of keyboard input via
Bluetooth SPP in general wedge functions, such as SEND_WEDGE, SET_WEDGE, and
WEDGE_READY. That is, users can upgrade a normal wedge application to a “wireless”
wedge application. All you need to do is to modify a few codes as shown below.
SET_COM(N%, Baudrate%, Parity%, Data%, Handshake%) – To set the wedge emulation
flag, use the last parameter regarding hardware handshake setting.
SET_COM_TYPE(2,5)
SET_COM(2,1,1,1,4)
OPEN_COM(2)
And then, use the normal wedge functions to send data.
SET_COM_TYPE(2,5)
SET_COM(2,1,1,1,4)
OPEN_COM(2)
CLS
PRINT “Wait to Connect”
LOOP000:
IF WEDGE_READY = 0 THEN GOTO LOOP000
BEEP(4400,4)
CLS PRINT “OK! Try to Send”
LOOP:
KeyData$ = INKEY$
IF KeyData$ = “” THEN GOTO LOOP
IF KeyData$ = “0” THEN
IF WEDGE_READY = 1 THEN
PRINT “READY”
ELSE
PRINT “NOT READY”
END IF
ELSE IF KeyData$ = “1” THEN
SEND_WEDGE(“Hello”)
ELSE IF KeyData$ = “2” THEN
PRINT “Hello”
END IF
GOTO Loop
Comentarios a estos manuales