Ez-Key Remapping

For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
donfouts
 
Posts: 5
Joined: Tue Sep 23, 2014 10:36 pm

Ez-Key Remapping

Post by donfouts »

Hello,

I have searched the fourms and the tutorials for help with the remapping of keys on the ez-key hid controller.

I have tried processing v1.5.1 and v2.2
both in windows
I can only get v2.2 to build on linux but tried it there too.

I have tried the GUI and Text based remapper sketches in all three senerios.

and there is a basic flaw in the processing code. It looks like C but I don't know much C except for my limited arduino programming I have done.

Is there a site that can help me better troubleshoot why both the GUI and text style sketches in both 1.5 and 2.2 give me a
"there is not class called HID_Keys" sorry I can't include a screen shot - I am writing this email from work the night after looking into the problem.

The HID works on my linux box - but I purchased 2 of the ez-keys, and I need to use a different set of key strokes for the 2nd unit - or it was all a waste.

Thanks,
-Don

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Ez-Key Remapping

Post by adafruit_support_rick »

I wonder if your download of the GUI_EZKey_Remapper is corrupted. I'm running it right now with no issues.
Class Hid_Keys is in a file called HID_Keys. Do you have that file?

User avatar
donfouts
 
Posts: 5
Joined: Tue Sep 23, 2014 10:36 pm

Re: Ez-Key Remapping

Post by donfouts »

can you please give me the setup you are running:
OS, Processing Version, GUI or Text?
I am just using the current code on the site: http://learn.adafruit.com/system/assets ... 1387568625

User avatar
donfouts
 
Posts: 5
Joined: Tue Sep 23, 2014 10:36 pm

Re: Ez-Key Remapping

Post by donfouts »

also you don't include any instruction on the controlP5 library.... and it does not come with any of the download zips you link to or talk about....
I found it here: http://www.sojamo.de/libraries/controlP5/
the newest version of that library works correct? or do I need to use an older version?
I did use the older version (same year as processing 1.5 the controlP5 that was released in 2011)

can you please do a fresh install of the objects outlined in the how to: https://learn.adafruit.com/introducing- ... s-wireless

not that I don't trust you, but if you had processing already installed on your PC at work - perhaps there was a step you had to take years ago when you set it up the first time that did not make the how to page....

Thanks,
-don

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Ez-Key Remapping

Post by adafruit_support_rick »

I'm running on MacOS. I re-downloaded and it runs just fine.

Tell me, when you first opened GUI_EZ_Key_remapper.pde, did Processing tell you that the file needed to be inside another folder and offer to move it there for you?

You need to have a single folder called GUI_EZKey_remapper that contains all of the pde files at the top level, like this:
ezkey_remapper_folder.png
ezkey_remapper_folder.png (275.97 KiB) Viewed 488 times

User avatar
donfouts
 
Posts: 5
Joined: Tue Sep 23, 2014 10:36 pm

Re: Ez-Key Remapping

Post by donfouts »

Ok making progress:

My setup:
Windows 7
Processing v1.5.1
ControlP5 v2.0.4

The GUI_EZKey_remapper folder from the download provided does need to be in the Sketchbook location: you can find this location in processing: File > Preferences
folder the Sketchbook HAS to be in
folder the Sketchbook HAS to be in
pref.PNG (24.04 KiB) Viewed 488 times
But we are still getting an error - I can try an older version of ControlP5 - but this should be documented on Adafruit - if this is the only problem
error with the newest version of ControlP5
error with the newest version of ControlP5
error.PNG (14.53 KiB) Viewed 488 times
So I reverted to the version of ControlP5 from 2010 (the version that would have been out when this version of Processing came out)
and Received the following error:
Error With legacy Processing and legacy ControlP5
Error With legacy Processing and legacy ControlP5
error2.PNG (6.51 KiB) Viewed 488 times
I have not looked at the code yet to see if I can find a problem, but if you just downloaded the same version I have - and it runs on your Mac - I am going to assume it is not a Code error, it has to be a config error.

ideas?
v/r Don

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Ez-Key Remapping

Post by adafruit_support_rick »

key_text is of type Textlabel, which is part of ControlP5.
The sojamo.de link is the correct one for ControlP5.

I get the same NoSuchMethodError you get when I try this in Processing 1.5.1. I don't know what that's all about.

But it doesn't happen with Processing 2.2.1, so let's stick with that, and with the latest version of ControlP5 from sojamo.de.

Do you have ControlP5 installed correctly? The folder structure should be:

Code: Select all

Processing
  libraries
    controlP5
      examples
      library
        controlP5.jar
      reference
      src

User avatar
donfouts
 
Posts: 5
Joined: Tue Sep 23, 2014 10:36 pm

Re: Ez-Key Remapping

Post by donfouts »

OK
I got it to work....
just to document for anyone with issues:

you have to run 32bit version of processing regardless of your OS version.

A Known Good setup:
Windows 7 64bit
Processing v2.1.1 32bit
ControlP5 v2.0.4

Thanks guys
This should be in the learning page.

-Don

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Ez-Key Remapping

Post by adafruit_support_rick »

Interesting. I wonder why that is?
I updated the tutorial with this information. Thanks!

Locked
Please be positive and constructive with your questions and comments.

Return to “Wireless: WiFi and Bluetooth”