Hi guys,
I'm trying to write some code for a PIC which includes an ECIO to emulate a USB PC Keyboard - just certain scan codes and a buttons E-Block.
Just thought perhaps someone would maybe have something available already to make my life easier!
Worth a shot I guess...
Thanks in advance...
ECIO Project USB Keyboard...
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: ECIO Project USB Keyboard...
Hello,
Here is a program that reads values from a keypad and inputs them into the PC as a keyboard interface. You will probably have to change the target to the ECIO in the project options.
Here is a program that reads values from a keypad and inputs them into the PC as a keyboard interface. You will probably have to change the target to the ECIO in the project options.
- Attachments
-
- Ex2. Keyboard.fcf
- (25.74 KiB) Downloaded 431 times
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: ECIO Project USB Keyboard...
Here is a excel document I put together to allow you to input the scan codes to the PC correctly.
- Attachments
-
- HID Keyboard Scan Codes.xls
- (37.5 KiB) Downloaded 344 times
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 267
- Joined: Mon Sep 14, 2009 10:34 am
- Has thanked: 30 times
- Been thanked: 19 times
- Contact:
Re: ECIO Project USB Keyboard...
Just a quickie.
I see you are using scancodes 2 from your xls but where did you get the Directions from to assign to the keypad please and hash symbol?
I'm looking for the Function Key scancodes and they aren't on the spread and the Microsoft stuff on the net is unintelligible to me!
Cheers fella...
I see you are using scancodes 2 from your xls but where did you get the Directions from to assign to the keypad please and hash symbol?
I'm looking for the Function Key scancodes and they aren't on the spread and the Microsoft stuff on the net is unintelligible to me!
Cheers fella...
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: ECIO Project USB Keyboard...
Hello,
This document looks fairly simple and should cover most of the keys
http://www.google.co.uk/url?sa=t&source ... APZFiuCbTQ
This document looks fairly simple and should cover most of the keys
http://www.google.co.uk/url?sa=t&source ... APZFiuCbTQ
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 267
- Joined: Mon Sep 14, 2009 10:34 am
- Has thanked: 30 times
- Been thanked: 19 times
- Contact:
Re: ECIO Project USB Keyboard...
Hi Ben,
It's great except every key works on the ECIO in the simulator yet the Function Keys on the actual hardware, despite the LCD saying otherwise, are not sending the correct key to the PC which is really weird. For example:
F7 should send Hex 0x62 but sends Hex 0x52
F8 should send Hex 0x64 but sends Hex 0xa
F9 should send Hex 0x65 but sends Hex 0x6e
Have I discovered a bug!
It's great except every key works on the ECIO in the simulator yet the Function Keys on the actual hardware, despite the LCD saying otherwise, are not sending the correct key to the PC which is really weird. For example:
F7 should send Hex 0x62 but sends Hex 0x52
F8 should send Hex 0x64 but sends Hex 0xa
F9 should send Hex 0x65 but sends Hex 0x6e
Have I discovered a bug!
-
- Posts: 267
- Joined: Mon Sep 14, 2009 10:34 am
- Has thanked: 30 times
- Been thanked: 19 times
- Contact:
Re: ECIO Project USB Keyboard...
Hi Ben,
It's working now! I reloaded your original code and that did the arrow keys OK then when I loaded my changes in it started working!
Weird but thanks for all the help as usual fella!
It's working now! I reloaded your original code and that did the arrow keys OK then when I loaded my changes in it started working!
Weird but thanks for all the help as usual fella!
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: ECIO Project USB Keyboard...
Hi Sparkoids,
That's great news was a bit surprised yesterday at your findings so glad its all working correctly for you now.
That's great news was a bit surprised yesterday at your findings so glad its all working correctly for you now.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel