-
-
Notifications
You must be signed in to change notification settings - Fork 39.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IS31FL3733 driver hardcoded to use STM32 mcu #3969
Comments
Dead giveaway: qmk_firmware/drivers/arm/i2c_master.c Line 18 in 07d317a
Basically, you'd need to find out what is the correct values, and .... maybe ifdef this stuff: qmk_firmware/drivers/arm/i2c_master.c Lines 37 to 39 in 07d317a
qmk_firmware/drivers/arm/i2c_master.c Lines 49 to 50 in 07d317a
edited for permalinks – noroadsleft |
Yep you can ifdef an i2c driver for k20x mcus I dont exactly remember which makefile is the correct one to do so but you can follow the flow and see where files get pulled in. |
This seems to be the only open issue for the k_type. Anyone working on this? |
The controller driver was fixed. Now somebody just needs to convert the K_Type to the LED Matrix feature. |
@drashna since the stock k-type firmware is also open source, I'm guessing the needed information could be found in https://github.com/kiibohd/controller ... I don't really know (yet) what to look for but I'll poke around. |
I think so, yeah |
I tried to do some work on this but I have no experience with embedded development and so it failed. I did a fork with my progress under https://github.com/pottar/qmk_firmware if anyone wants to take a look at it and help me get it working. What I could find is that the i2c driver in |
drivers/arm/i2c_master.c has nothing to do with how many slaves you have. It can address all of them. both is31fl3733.c and is31fl3731.c are capable of being multidriver. As said above the only thing one should need to do here is map the led matrix correctly to the way the driver files expect it. |
It can address all of them as long as they are in the same bus. The K-Type uses a different bus for each ic31 chip. If you look at the signature for i2c_* funcions in i2c_master.c, they take At least this is my understanding from reading the code, but again I have little experience with embedded development. |
AHHH I see, I didnt have a look on the schematic :) |
Is there still interest in this? I have three keyboards, 2 use qmk and one, the k-type relies on the input club configurator. |
I'm definitely still interested. I took a crack at it but couldn't figure it out: the k-type uses ChibiOS so I couldn't figure out how to do it by looking at the Massdrop CTRL qmk code and the input club kiiboohd firmware. |
Still interested too, I also took a shot at it but I have zero experience with embedded development so I was never able to figure out why it wasnt working. My code is still in my cloned repo so feel free to take a look at it and see if you can come up with why it doesnt work. I would love to keep attempting but I'm a DevOps/SRE kinda guy and I have no idea how to do embedded. |
I'm in the same boat, not enough knowledge and not enough time.. |
It turns out the K-Type has two 3733s, which is not usually a problem, except that they are on different I2C buses, which i2c_master currently does not support. |
I was able to take the existing drivers and make changes so that they support multiple i2c busses. I have opened up a PR #11551 that has those changes if anyone would like to try it on their k-type. |
@Andrew-Fahmy I tried it on my K-Type. I was able to load it and the keyboard seems to work ok, but I was unable to trigger any LED effect - they're all off. Idea? Thanks. |
@gogades What keymap are you using? Currently only my keymap ( |
I've tried on my k_type which was previously running qmk. Well done. It works fine and it's lovely to have some LED prettiness back to compliment the qmk functionality. I just turn it on with Fn Print, and selected a mode where random keys light up. Two things I have questions about;
|
@dmgm Glad you got them to work! You can look here for more of the shortcuts that change the lighting.
|
This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in the next 30 days unless it is tagged properly or other activity occurs. |
Closing due to inactivity. |
Hello,
I'm trying to add LED support to the k_type and when I add the IS31FL3733 driver it pulls in 'drivers/arm/i2c_master.c', this library is only valid for STM32 #processors.
Is there any way to use the IS31FL3733 with different processors?
The k_type is using k20x mcu
#2964
@yiancar
@drashna
The text was updated successfully, but these errors were encountered: