If you want to use your keyboard to perform commands, what follows is an example.
I use the F11 to turn on my LCD's, the F12 key to turn them off.
Create a file named cc2_keyboard.ini and copy the following into this file.
[options]
[input00]
id=2110068363
repeat=250
key0=0x0058
key1=0
[input01]
id=92724513
repeat=250
key0=0x0057
key1=0
Save it in your cc2_service directory.
Edit your cc2_service.ini file (red text) as follows:
[m02]
id=3088604686
module_name="Crystalfontz 635"
options=0
screen_sel=0
alt_enabled=1
brightness=70
contrast=40
[m02-event00]
if_type=1
if=2110068363
cond=0
to=1.000000
do_type=6
do=0.000000
[m02-event01]
if_type=1
if=92724513
cond=0
to=1.000000
do_type=6
do=70.000000
Please note the following:
1. I have my brightness set at 70. make the do=70.000000 the same as what you have your brightness set to.
2. There is a possibility that the id #'s in the cc2_keyboard.ini might already be in use. I would recommend you use rand_gen.exe program to generate new id #'s.
3. There is also a possibility that your specific keyboard outputs different scan codes than mine. If the code does not work, use the key_test.exe program to test your keyboard.
For 2 & 3, the possibility of a problem is probably remote. I just noted them, in case you run into a problem.
Using this code as an example, you can program other commands thru the keyboard, if you wish.
Questions?
Stay tuned for LED and keypad examples...
Jim
ps: I forgot to mention: "key_export.dll" needs to be copied to your windows\system32 directory for the keyboard hotkeys to operate correctly.
I use the F11 to turn on my LCD's, the F12 key to turn them off.
Create a file named cc2_keyboard.ini and copy the following into this file.
[options]
[input00]
id=2110068363
repeat=250
key0=0x0058
key1=0
[input01]
id=92724513
repeat=250
key0=0x0057
key1=0
Save it in your cc2_service directory.
Edit your cc2_service.ini file (red text) as follows:
[m02]
id=3088604686
module_name="Crystalfontz 635"
options=0
screen_sel=0
alt_enabled=1
brightness=70
contrast=40
[m02-event00]
if_type=1
if=2110068363
cond=0
to=1.000000
do_type=6
do=0.000000
[m02-event01]
if_type=1
if=92724513
cond=0
to=1.000000
do_type=6
do=70.000000
Please note the following:
1. I have my brightness set at 70. make the do=70.000000 the same as what you have your brightness set to.
2. There is a possibility that the id #'s in the cc2_keyboard.ini might already be in use. I would recommend you use rand_gen.exe program to generate new id #'s.
3. There is also a possibility that your specific keyboard outputs different scan codes than mine. If the code does not work, use the key_test.exe program to test your keyboard.
For 2 & 3, the possibility of a problem is probably remote. I just noted them, in case you run into a problem.
Using this code as an example, you can program other commands thru the keyboard, if you wish.
Questions?
Stay tuned for LED and keypad examples...
Jim
ps: I forgot to mention: "key_export.dll" needs to be copied to your windows\system32 directory for the keyboard hotkeys to operate correctly.
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.
Last edited: