Skip to content
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

toggle led's #17

Closed
geekhunger opened this issue Oct 30, 2020 · 5 comments
Closed

toggle led's #17

geekhunger opened this issue Oct 30, 2020 · 5 comments
Labels
question Further information is requested

Comments

@geekhunger
Copy link

Hey Michael,
first of all let me thank you for this project. It's amazing! I ordered all parts and the boards and have already build one. What a pleasurable and fun experience - it just works!

However I'd like to set my LEDs manually to create a Knight Rider effect (light scrolls left to right).
Ideally I'd like to have a function that I can all anywhere to turn on (or off) the light of a certain led.
I've found your initialization code inside kint36.c and played around with it, but I just can't turn on manually any of the led lights. Could you guide me a little into the right direction?

@geekhunger geekhunger changed the title trigger led's toggle led's Oct 30, 2020
@stapelberg
Copy link
Contributor

stapelberg commented Oct 31, 2020

first of all let me thank you for this project. It's amazing! I ordered all parts and the boards and have already build one. What a pleasurable and fun experience - it just works!

Glad to hear everything works well for you!

However I'd like to set my LEDs manually to create a Knight Rider effect (light scrolls left to right).
Ideally I'd like to have a function that I can all anywhere to turn on (or off) the light of a certain led.
I've found your initialization code inside kint36.c and played around with it, but I just can't turn on manually any of the led lights. Could you guide me a little into the right direction?

My guess would be that the LEDs are overridden after you change them. Try commenting out the code which sets the LEDs based on the keyboard state: https://github.com/qmk/qmk_firmware/blob/2e90ef05363893f3aa49c99af408e774609aa97a/keyboards/kinesis/kint36/config.h#L62-L66

But: maybe instead of implementing your own animation on just 4 LEDs, why not go one step further and control an LED strip?

QMK has support for that built-in: https://beta.docs.qmk.fm/using-qmk/hardware-features/lighting/feature_rgblight, and there already is a knight rider mode animation: qmk/qmk_firmware#1672

We have at least one person who got that feature to work on the kinT controller: #10 (comment)

@stapelberg stapelberg added the question Further information is requested label Oct 31, 2020
@afonsoguerra
Copy link

Can I ask for an update on the status of this?

At the moment I am still waiting for my boards to arrive, but I'm planning the code. I would instead like to use the LEDs as a layer indicator, so I could have up to 16 layers indicated using the 4 LEDs. The code referenced on kint36.c seems to have gone. So far I'm trying to make the keyboard look 'normal' so I ain't keen on the RGB mod, but looks easy enough.

@stapelberg
Copy link
Contributor

What update are you waiting for? AFAIK, the kinT controller LEDs work fine, and you can use the various QMK features that work with LEDs.

I updated the link in the comment above to point to https://github.com/qmk/qmk_firmware/blob/2e90ef05363893f3aa49c99af408e774609aa97a/keyboards/kinesis/kint36/config.h#L62-L66, where QMK configures which pins to use for the status LEDs.

@afonsoguerra
Copy link

ah, awesome. I was just thrown off by the link above. no updates needed, seems this will work out of the box.

@stapelberg
Copy link
Contributor

Looks like this is resolved, closing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants