• We recently switched our forum platform. If you experience any issues please email support@crystalfontz.com

Keypad Events

jc634

Administrator
Before examples are discussed here, I would refer you to daks user contributed winamp screens. Open the screen files and note the [event] sections. This is how you program screen specific keypad commands.

You can also program module specific keypad commands, keypad events to control other modules, etc. In my case, I use the 635 left/right keypad to scroll thru my 634 screens.

Life is easier if you program module specific commands (you don't have to know id #'s).

This is also true when programming SCAB screens (see jdgordon's example). In my case, the SCAB that controls my computer fans is attached to my 631. I display SCAB info on my 634 and 635. Consequently, I do not use the [modxx] code.

In otherwords, I have a somewhat complicated keypad structure that I would not want to confuse you with.

Speaking of confused, are you totally confused yet?

Since I use id #'s, I would appreciate it if daks, redeir, or jdgordon upload an example using the [modxx] command.

Once they do, I am sure that more questions and requests will be generated.

Come on guys, let's get these users using the keypad!:D

Jim
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.
 

reider

New member
Heres a 631 module wide keypad assignment. Bold text is not part of the screen but there for clarity.

Key assignments are

UL=1
UR=2
LL=4
LR=8

Though 1 and 4 are used for scroll up/down, at default.

Screen starts here......

[pre]
rows=2
cols=20

[mod00]
name="id_keypad"
id=@32 (generates psuedo random ID number for this keypad)

[screen]
screen_name="Winamp Fwd-Rev"
options=0
alt_delay=10000

[event00]
if_type=1
if=@32 (calls that same psuedo ID number/keypad)
cond=0
to=2 (checks for Key 2 depression, which is UL-Upper Left)
do_type=1686285661 (Using winamp ID number for FWD)
do=1 (Tells it to proceed with the instruction)

[event01]
if_type=1
if=@32 (calls that same psuedo ID number)
cond=0
to=8 (checks for Key 8 depression, which is LR-Lower Right)
do_type=2431559003 (Using winamp ID number for RWD)
do=-1 (Tells it to proceed with the instruction)

[event02]
if_type=1
if=1001136639 (Winamp program ID number)
cond=0
to=0 (in this instance program happens to be turned off)
do_type=9 (control number for screens)
do=-1 (skip back one screen, which makes this screen vanish)

[r00] (commence textual instructions)
options=10

[r00-i00]
string="FWD/RWD Track"

[r01]
options=10

[r01-i00]
string="UR=RWD LR=FWD"
 
Last edited:

reider

New member
and here is a 635 one. You can see the skip screen set at Event 4 and the IDs in the other events can be matched via the ID numbers tallied up to the ones in the CC2_Winamp2.ini in the Plugin Info folder within the CC2 Service folder.

Key assignments are

UP=1
DOWN=32
LEFT=8
RIGHT=16
TICK=2
X=4

Though 1 and 32 are used for scroll up/down, at default.

Screen starts here.......

[pre]
rows=4
cols=20

[mod00]
name="id_keypad"
id=@32

[screen]
screen_name="Winamp Choose Track"
options=0
alt_delay=10000

[event00]
if_type=1
if=@32
cond=0
to=8
do_type=133939910
do=1

[event01]
if_type=1
if=@32
cond=0
to=16
do_type=1216962439
do=-1

[event02]
if_type=1
if=@32
cond=0
to=2
do_type=3197071286
do=1

[event03]
if_type=1
if=@32
cond=0
to=4
do_type=468189197
do=-1

[event04]
if_type=1
if=1001136639
cond=0
to=0
do_type=9
do=-1

[r00]
options=10

[r00-i00]
string="Choose Track"

[r01]
options=10

[r01-i00]
string="LEFT=PREV RIGHT=NEXT"

[r02]
options=10

[r02-i00]
string="TICK=VOL UP"

[r03]
options=0

[r03-i00]
string="X=VOL DOWN"
 
Last edited:

Silver Dragon

New member
hey, excuse my ignorance but how would i get that to work? where do i post those command? 635.ini? please give me more info i would love to unleash the full potential of the 635!

many thanx in advance.
 

reider

New member
Silver Dragon said:
hey, excuse my ignorance but how would i get that to work? where do i post those command? 635.ini? please give me more info i would love to unleash the full potential of the 635!

many thanx in advance.
In your case, for the 635, I have screens made up and ready. If you have the new CC2 installed and configured for the 635 then just right click with your mouse on the CC task tray icon and choose configure. Make sure 635 is selected if more than one module available, hit 'insert new screen'. Open User-Contributed folder, open Reider folder then doubleclick on each to add. Keep repeating this til you have the full collection then restart CC2.

If Winamp isn`t running at the time then the screens will not show up in the module display. If Winamp is running, then they will be showing and working.

You may have to do some configuration in winamp if not already done but this can easily be achieved. You just copy the vis_crystalcontrol.dll from CC2 to the Winamp\Plugins folder. Then get Winamp to turn visualisation on automatically when it starts to play.

This may be more information than you need, but I feel it should be enough to get some good default screens going. From these you can decide if you need any more custom screens and then have the templates to make a start and/or request some more to be made up.

Steve
 

jc634

Administrator
Silver Dragon said:
hey, excuse my ignorance but how would i get that to work? where do i post those command? 635.ini? please give me more info i would love to unleash the full potential of the 635!

many thanx in advance.
Ask reider for his info.

In general, there are module keypad commands and screen keypad commands, which override the module commands.

For my 635, the following is what I use module keypad commands. This information is in the cc2_service.ini file.

[m02]
id=3088604686
module_name="Crystalfontz 635"
options=0
screen_sel=0
alt_enabled=1
brightness=70
contrast=40
dkc_disable=1

[m02-event00]
if_type=1
if=96615893
cond=0
to=1.000000
do_type=9
do=1.000000

[m02-event01]
if_type=1
if=96615893
cond=0
to=32.000000
do_type=9
do=-1.000000

[m02-event02]
if_type=1
if=2110068363
cond=0
to=1.000000
do_type=6
do=0.000000

[m02-event03]
if_type=1
if=92724513
cond=0
to=1.000000
do_type=6
do=70.000000

Event 0 scrolls up one screen. Event 1 down on screen. 2 & 3 turns off/on my modules using the keyboard.

Note the dkc_disable=1. This command disables the built in keypad routine.

If you use winamp, be sure to study and add daks Winamp Song-Name + Spectrum-Anyl (2ch) + Control.2004 screen. This includes screen specific keypad commands to control winamp. Study the EVENT text vs the info found in the cc2_winamp2.ini, which is in the plugin_info directory, to see how the commands work.

I realize that this is alot of info. Study and try and understand what is happening. I am sure you will have more questions. Try and be specific on what you do not understand.;)

Jim
 
Congrats Jim.
It works! Now keypad up/down scrolls through the screens I have incorporated to CC2 via its config screen!

Shouldn't something as simple as that come within the software?

Thanks
 

jc634

Administrator
It will. CC admin's next job will be incorporating the screen GUI, which I assume will include programming keypad, LED's, keyboard, etc.

1 thing at a time...;)

Jim
 
Top