Digipot; Tab. 41 Virtual Key Codes - Jetter JVM-104-O15 User Manual

Table of Contents

Advertisement

Jetter AG
Virtual key codes

7.8.2 Digipot

Digipot registers
JetSym STX pro-
gram
JVM-104-O15 User Manual
Register
Description
361000.5
[SCROLL] key
Bit 5 = 1: [SCROLL] key is pressed.
361000.6
[ESC] key
Bit 6 = 1: [ESC] key is pressed.
361000.7
[HOME] key
Bit 7 = 1: [HOME] key is pressed.
Tab. 40: Input key registers
The following table shows the symbolic hexadecimal values for the virtual key
codes used by the system.
Input key
Value
[F1]
0x70 (Ground)
[F2]
0x71 (Ground)
[F3]
0x72 (Ground)
[F4]
0x73 (Ground)
[POWER]
0x74
[SCROLL]
0x75
[ESC]
0x1B
[HOME]
0x24
Tab. 41: Virtual key codes
The JVM-104-O15 has a rotary dial (digipot) with pushbutton feature which offers
a convenient input option. The following provides details of the digipot's special
registers with a corresponding sample program.
Register
Description
363000
This register holds the current count value. If you turn the
digipot, the count value increments or decrements. Where:
Turning the digipot clockwise increments the count value
Turning the digipot counter-clockwise decrements the count
value
363001
Bit 0: 0 = Pushbutton not pressed
Bit 0: 1 = Pushbutton pressed
363002
This register lets you specify the lower limit for the count value
of the digipot. If you continue turning the digipot counter-clock-
wise, register 363000 remains at this minimum value.
363003
This register lets you specify the upper limit for the count value
of the digipot. If you continue turning the digipot clockwise, reg-
ister 363000 remains at this maximum value.
In the following sample program, the background lighting of the JVM-104-O15 is
dimmed using the digipot. An upper and lower limit for the digipot is specified for
this purpose. If you press the pushbutton, full background lighting is activated.
Var
    Digipot_Count : Int
    Digipot_Limit_min: Int
    Digipot_Limit_max: Int
    Digipot_Button : Int
    BackgroundLighting: Int
End_Var;
At
%VL 363000;
At
%VL 363002;
At
%VL 363003;
At
%VL 363001;
At
%VL 364000;
Programming | 7
38 / 60

Advertisement

Table of Contents
loading

Table of Contents