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

4h to go to middle, not in the middle of 3h #34

Merged
merged 1 commit into from Nov 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -41,16 +41,10 @@ uint8_t tint_ramping_state(Event event, uint16_t arg) {
// only respond on first frame
if (arg) return EVENT_NOT_HANDLED;

// MK: add step in middle of tint
if (tint == 1) {
tint = 128;
}
else if (tint == 128) {
tint = 254;
}
else if (tint == 254) {
tint = 1;
}
// force tint to be 1 or 254
if (tint != 254) { tint = 1; }
// invert between 1 and 254
tint = tint ^ 0xFF;
set_level(actual_level);
return EVENT_HANDLED;
}
Expand Down Expand Up @@ -100,6 +94,13 @@ uint8_t tint_ramping_state(Event event, uint16_t arg) {
return EVENT_HANDLED;
}

// click, click, click, hold: go to middle of tint ramp
else if (event == EV_click4_hold) {
tint = 127;
set_level(actual_level);
return EVENT_HANDLED;
}

return EVENT_NOT_HANDLED;
}

Expand Down
446 changes: 223 additions & 223 deletions hex_files/anduril.blf-lantern.hex

Large diffs are not rendered by default.

899 changes: 450 additions & 449 deletions hex_files/anduril.emisar-d4sv2-tintramp-fet.hex

Large diffs are not rendered by default.

884 changes: 442 additions & 442 deletions hex_files/anduril.emisar-d4sv2-tintramp.hex

Large diffs are not rendered by default.

884 changes: 442 additions & 442 deletions hex_files/anduril.noctigon-k9.3-219.hex

Large diffs are not rendered by default.

867 changes: 434 additions & 433 deletions hex_files/anduril.noctigon-k9.3-nofet.hex

Large diffs are not rendered by default.

900 changes: 450 additions & 450 deletions hex_files/anduril.noctigon-k9.3-tintramp-219.hex

Large diffs are not rendered by default.

900 changes: 450 additions & 450 deletions hex_files/anduril.noctigon-k9.3-tintramp-fet.hex

Large diffs are not rendered by default.

884 changes: 442 additions & 442 deletions hex_files/anduril.noctigon-k9.3-tintramp-nofet.hex

Large diffs are not rendered by default.

884 changes: 442 additions & 442 deletions hex_files/anduril.noctigon-k9.3.hex

Large diffs are not rendered by default.

884 changes: 442 additions & 442 deletions hex_files/anduril.noctigon-kr4-tintramp.hex

Large diffs are not rendered by default.