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

tint switch, add middle of tint #33

Merged
merged 1 commit into from Nov 25, 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,10 +41,16 @@ uint8_t tint_ramping_state(Event event, uint16_t arg) {
// only respond on first frame
if (arg) return EVENT_NOT_HANDLED;

// force tint to be 1 or 254
if (tint != 254) { tint = 1; }
// invert between 1 and 254
tint = tint ^ 0xFF;
// MK: add step in middle of tint
if (tint == 1) {
tint = 128;
}
else if (tint == 128) {
tint = 254;
}
else if (tint == 254) {
tint = 1;
}
set_level(actual_level);
return EVENT_HANDLED;
}
Expand Down
@@ -1 +1 @@
#define VERSION_NUMBER "20211124"
#define VERSION_NUMBER "20211125"
2 changes: 1 addition & 1 deletion hex_files/anduril.blf-gt-mini.hex
@@ -1,6 +1,6 @@
:10000000ABC0C5C024CCC3C0C2C0C1C0C0C0BFC08B
:10001000DFCBBDC0BCC0BBC014CCB9C0B8C032308F
:1000200032313131323430333232000000000000DE
:1000200032313131323530333232000000000000DD
:1000300000000000000000000000000000000000C0
:1000400000000000000000000000000000000000B0
:1000500000000000000000000000000000000000A0
Expand Down
2 changes: 1 addition & 1 deletion hex_files/anduril.blf-gt.hex
@@ -1,6 +1,6 @@
:10000000ABC0C5C020CCC3C0C2C0C1C0C0C0BFC08F
:10001000DBCBBDC0BCC0BBC010CCB9C0B8C0323097
:100020003231313132343033323100191919191962
:100020003231313132353033323100191919191961
:100030001919191919191919191919191919191930
:100040001919191919191919191919191919191920
:100050001919191919191919191919191919191910
Expand Down