Skip to content

Dimming improvements#7

Open
coderforlife wants to merge 3 commits intopblesi:masterfrom
coderforlife:dimming-improvements
Open

Dimming improvements#7
coderforlife wants to merge 3 commits intopblesi:masterfrom
coderforlife:dimming-improvements

Conversation

@coderforlife
Copy link

This includes the color-spectrum improvements along with several minor improvements to the quality and efficiency of the code. Additionally, it adds in a new set of dimming times and never goes completely dark so that the last color can always be seen. The light is quite dim at this point and shouldn't interfere too much.

Jeffrey Bush added 3 commits January 10, 2019 17:52
There are additional stages to dimming and it never goes completely off 
so that there is always a reference to the last color. This could be 
improved futher by making the system generalized so it is easy to change 
in the code.

int currentEvent = tEVENT_NONE;
int eventTime = Time.now();
int eventTime = 0;
Copy link
Author

Choose a reason for hiding this comment

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

Note that seeding this with Time.now() means that it is impossible to grab the current color it should be and it just stays dark until a light is touched somewhere.

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.

1 participant