Git Product home page Git Product logo

ch57x-keyboard-mapper's People

Contributors

achushu avatar thefox6 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ch57x-keyboard-mapper's Issues

Layerless keyboards:

I have a keyboard with no layer switch and I've found a strange behaviour; when programming the keyboard the layer that will upload and work is the last one on the yaml file but upon loosing power (reconnecting the device or restarting pc) the keyboard will default to the first layer on the file for some reason. It's not really an issue, I just copied the same config on all layers but it's something that may be worth adding to the readme for some folks.

Mediacode not working?

Hello,

firstly a big thanks for your work!

I have zero to nothing experience with go, but I tried my best to get a bit into it.

But I am not able to get the Mediacodes to work with my Macropad.
It has 3 Keys + 1 Rotary-encoder, the µC is a CH552g. So far I somehow managed to set "normal" keys and things like CTRL+C.

Bit if I Enter e.g {NOMOD, PLAY} It seems not to overwrite the existing code for this key.

Am I doing something wrong? Or is there maybe a bug?

Thanks in advance :-)

On MacOS, it appears that a kernel driver is latching onto the keyboard, preventing the mapper from finding the device.

I don't know that this is an issue for @achushu so much as a place for me to document the issue, but programming on Mac is not going well.

I checked, and the Product ID is 0x8890, and Vendor ID is 0x1189, Manufacturer wch.cn. I noticed that in the code, this is presented in decimal form, but I've tried it both ways, and I get the same result. I even have it print them before tossing the error, and it is returning decimal form:

// manu: wch.cn, product: CH57x, vendorID 4489, productID: 34960

const (
	VENDOR_ID  = 0x1189
	PRODUCT_ID = 0x8890
	INTERFACE  = 1 // the programmable interface
)
Garou:~/git/CH57x-keyboard-mapper  tshadwick$ ./ch57x
4489
34960
could not find the device interface
Garou:~/git/CH57x-keyboard-mapper  tshadwick$ lsusb -v

USB
**snip**
            CH57x:

              Product ID: 0x8890
              Vendor ID: 0x1189  (Trisat Industrial Co., Ltd.)
              Version: 0.00
              Speed: Up to 12 Mb/s
              Manufacturer: wch.cn
              Location ID: 0x14140000 / 8
              Current Available (mA): 500
              Current Required (mA): 100
              Extra Operating Current (mA): 0
**end snip**

So the device is there, but can't be found. Perl is my primary language, so I took a brief stab of enumerating the device using libusb there.

Garou:~/git  tshadwick$ perl usb_probe.pl
Bus 020 Device 005: ID 1189:8890
Bus 020 Device 004: ID 291a:8352
Bus 013 Device 007: ID 05e3:0749
Bus 013 Device 006: ID 0bda:8153
Bus 013 Device 005: ID 291a:0817
Bus 020 Device 003: ID 291a:2817
error in libusb_claim_interface: Access denied (insufficient permissions) at /Users/tshadwick/perl5/lib/perl5/darwin-2level/USB/LibUSB/Device/Handle.pm line 22.

Hmm. Did some googling, and wind up on the libusb wiki:

How can I run libusb applications under Mac OS X if there is already a kernel extension installed for the device and claim exclusive access?

Thing is, I'm having a hard time determining what is holding onto the device. I had thought kextstat could list devices and what kernel driver was attached, but now I'm at a loss. @achushu, do you happen to know if this thing is using a serial chipset like the FTDI?

Error "this platform / binary does not support HID"

Hi,
I've compiled your code, but when I try to execute it it says "this platform / binary does not support HID",
I've tried to have a look around for that error but I haven't found anything.
I'm on Windows 10 Pro.
Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.