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

Dimming improvements #7

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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.
@@ -111,7 +113,7 @@ int rPin = D3;
unsigned char myId = 0;

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