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

Model 100 LED regression: only some LEDs light on boot #1329

Open
iliana opened this issue Feb 18, 2023 · 5 comments
Open

Model 100 LED regression: only some LEDs light on boot #1329

iliana opened this issue Feb 18, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@iliana
Copy link
Contributor

iliana commented Feb 18, 2023

Describe the bug
In the default sketch, the first LED effect is LEDOff. On my firmware sketch, I enable a solid color LED effect immediately (and have no other LED effects).

Somewhere in becf816...c1acb3b (this comparison looks confusing due to the LEDEffect-DigitalRain repo merge) seems to introduce a regression for this firmware. On power up, some or none of the LEDs light. I can hit my LED key (bound to Key_LEDToggle because I have only one effect) twice, and all LEDs light as expected.

When some LEDs do light, there are patterns. Generally it is the right 2 columns of the right half, and only the LED key on the left half. Sometimes we also get the tab and left Fn key.

7e2a767 looks potentially related? I am not sure.

To Reproduce

  1. Flash my sketch.

Expected behavior
I expected all the LEDs to light.

Environment (please complete the following information):

  • OS: macOS
  • Version: 12.6
  • Device: Keyboardio Model 100
@iliana iliana added the bug Something isn't working label Feb 18, 2023
@iliana
Copy link
Contributor Author

iliana commented Feb 18, 2023

Adding this to my setup() function reliably works around this issue:

LEDControl.disable();
delay(100);
LEDControl.enable();

@obra
Copy link
Member

obra commented Feb 21, 2023

@tlyu Do you think this might be related to some of your recent rework on startup?

@tlyu
Copy link
Collaborator

tlyu commented Feb 21, 2023

@tlyu Do you think this might be related to some of your recent rework on startup?

Yeah, it's possible. I'll try to reproduce, and I can try adding a poll for both ATtinys to start responding before exiting the Model100 setup (with a reasonable timeout in case someone is running with the right half disconnected).

@tlyu
Copy link
Collaborator

tlyu commented Feb 22, 2023

I can't reproduce it by setting my default LED mode to one of the solid colors on a default Model 100 sketch. I'm going to assume that the custom sketch speeds things up enough that the solid color mode writes the LEDs before the ATtinys have booted up.

@iliana
Copy link
Contributor Author

iliana commented Feb 22, 2023

That's my assumption as well. (Even with the same firmware build on my sketch, different numbers of LEDs come up on the left half on each boot, so I think the 100ms workaround I added is probably overkill.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants