Skip to content

Commit

Permalink
4h to go to middle, not in the middle of 3h
Browse files Browse the repository at this point in the history
  • Loading branch information
mkong1 committed Nov 26, 2021
1 parent a0f5c2b commit 7c92242
Show file tree
Hide file tree
Showing 11 changed files with 4,228 additions and 4,225 deletions.
Original file line number Diff line number Diff line change
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.

0 comments on commit 7c92242

Please sign in to comment.