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

Add a "change LED brightness by" block? #8

Closed
damellis opened this issue Apr 22, 2015 · 1 comment
Closed

Add a "change LED brightness by" block? #8

damellis opened this issue Apr 22, 2015 · 1 comment

Comments

@damellis
Copy link
Collaborator

This might be nice, as right now it's hard to fade LEDs (requires creating variables, if-statements to wrap around from 100 back to 0, etc). I'm not sure what we'd do when you hit 0 or 100, though. Maybe wrap around? Or bounce-back (start incrementing in the opposite direction)?

@khanning
Copy link
Owner

khanning commented May 2, 2015

I think the block should stop incrementing/decrementing when 0 or 100 are hit. It might be confusing if you don't know which direction the LED is changing. Wrapping around might not be a bad idea though?

We could also create a block to blink an LED every N seconds...

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

No branches or pull requests

2 participants