Skip to content

Conversation

@JohnAZoidberg
Copy link
Member

@JohnAZoidberg JohnAZoidberg commented Aug 2, 2023

Change sleep only if state changed or should sleep
This means the software sleep control will work again. Hardware sleep
control won't override it.

See README for detailed description of new sleep behavior.

This means the software sleep control will work again. Hardware sleep
control won't override it.

See README for details.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
Keep the device awake if the user interacts with it.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
- Sleep/Wake Command via USB Serial
- Idle timer

Both of the hardware triggers change the sleep state if the transition from one state to another.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Both of the hardware triggers change the sleep state if the transition from one state to another.
Both of the hardware triggers change the sleep state if they transition from one state to another.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
It's annoying to use the wake up command. Any command should wake up the
module.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
Ok(count) => {
let random = get_random_byte(&rosc);
match (parse_command(count, &buf), &state.sleeping) {
// While sleeping no command is handled, except waking up
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// While sleeping no command is handled, except waking up

Waking up should resume to the newly set brightness.
And it should also immediately show the newly set grid, not just ignore
it.
Waking up command should also reset the sleep timer.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
@JohnAZoidberg JohnAZoidberg changed the title ledmatrix: Change sleep only if state changed or should sleep ledmatrix: Automatically go to sleep and enable sleep/wake commands Aug 8, 2023
@JohnAZoidberg JohnAZoidberg merged commit 92e0c87 into main Aug 8, 2023
@JohnAZoidberg JohnAZoidberg deleted the autosleep branch August 8, 2023 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants